Spaces:
Sleeping
Sleeping
File size: 386 Bytes
83be853 14243c9 83be853 14243c9 00ff2f5 83be853 14243c9 83be853 6a0670c 83be853 2f0cc7d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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"]
|