Spaces:
Runtime error
Runtime error
File size: 624 Bytes
144b758 355ed6f 144b758 355ed6f 144b758 355ed6f 144b758 b7bc836 355ed6f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
#FROM python:3.9
#WORKDIR /code
#COPY ./requirements.txt /code/requirements.txt
#RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
#COPY . .
# Use the official Python image as base
FROM python:3.9
# Set the working directory in the container
WORKDIR /code
# Copy the requirements file into the container at /code
COPY requirements.txt /code/
# Install any dependencies specified in requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the rest of the application code into the container at /code
COPY . /code/
CMD ["gunicorn","-b" ,"0.0.0.0:7860","app.main:app"]
|