File size: 478 Bytes
4f626e3
 
 
a245bef
 
4f626e3
361c00b
 
4f626e3
aee20fc
 
 
361c00b
 
 
f17b91a
 
4f626e3
a245bef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the official Python image as the base image
FROM python:3.9

# Set the working directory in the container
WORKDIR /code

# Copy requirements.txt file
COPY requirements.txt .

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

# copy all the files in the app folder
COPY app/ .

EXPOSE 7860

# Start the FastAPI app with Uvicorn when the container starts
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]