Spaces:
Sleeping
Sleeping
# Use official Python image | |
FROM python:3.9 | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements file and install dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the entire application | |
COPY . . | |
# Expose the application port | |
EXPOSE 7860 | |
# Command to run the application | |
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"] | |