File size: 435 Bytes
c35869b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Start with a standard Python 3.9 environment
FROM python:3.9

# Set the folder where the app will live
WORKDIR /code

# Install your project tools from requirements.txt
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Copy your app.py into the server
COPY . .

# Launch your FastAPI app on port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]