Spaces:
Build error
Build error
FROM python:3.9 | |
# Set the working directory | |
WORKDIR /app | |
# Copy the requirements file | |
COPY requirements.txt . | |
# Install the requirements | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the rest of the application | |
COPY . . | |
# Install gunicorn | |
RUN pip install gunicorn | |
# Command to run the application | |
CMD ["gunicorn", "myapp:app", "--bind", "0.0.0.0:8000"] | |