File size: 490 Bytes
586855e
0ddf35f
586855e
 
1e1bd96
586855e
0ddf35f
586855e
 
1e1bd96
586855e
5ec3070
ec87896
586855e
 
1e1bd96
586855e
 
1e1bd96
3ee0781
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use the official Python image as base
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /code
# Copy the requirements file into the container at /app
COPY requirements.txt ./requirements.txt




# Install uvicorn
RUN pip install uvicorn

# Install Python dependencies
RUN pip install --no-cache-dir --upgrade  -r /code/requirements.txt

# Copy the current directory contents into the container at /app
COPY . .
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app" ]