File size: 502 Bytes
dad31ae
 
 
f6d9b3d
dad31ae
 
f6d9b3d
dad31ae
 
f6d9b3d
dad31ae
 
 
f6d9b3d
dad31ae
 
 
f6d9b3d
3a75960
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.10

# Set the working directory inside the container
WORKDIR /code

# Copy the requirements.txt file into our working directory (/app) in the container
COPY ./requirements.txt /code/requirements.txt

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


# Copy the app.py file into our working directory (/app) in the container
COPY . .



# Command to run when the container starts
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]