File size: 510 Bytes
dc71762
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use the official Python image from the Docker Hub
FROM python:3.9

# Set the working directory to /code
WORKDIR /code

# Copy requirements.txt to the docker container
COPY ./requirements.txt /code/requirements.txt

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

# Copy the current directory contents into the container at /code
COPY . .

# Run the command to start Uvicorn
CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "7860"]