Spaces:
Sleeping
Sleeping
FROM python:3.9-slim | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
# Create directory structure | |
RUN mkdir -p static/images | |
# Expose the port the app runs on | |
EXPOSE 7860 | |
# Command to run the app | |
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |