Spaces:
Running
Running
File size: 391 Bytes
ccd37d0 21ee26e ccd37d0 21ee26e ccd37d0 c61f2a2 ccd37d0 654ff21 6e10b8d ccd37d0 21ee26e ccd37d0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Using Python 3.9 base image
FROM python:3.9
# Set the working directory to /code
WORKDIR /code
# Copy requirements.txt to /code
COPY ./requirements.txt /code/requirements.txt
# Install dependencies from requirements.txt
RUN pip install -r requirements.txt
# Copy the entire project content to /code
COPY . /code
# CMD to run Gunicorn
CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"] |