Spaces:
Runtime error
Runtime error
File size: 429 Bytes
e708e53 ab703ea e708e53 ab703ea e708e53 ab703ea e708e53 ab703ea e708e53 ab703ea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Use a lightweight Python image as the base
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy all files from the current directory on the host to the container's /app directory
COPY . .
# Install Python dependencies listed in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Command to run the application using Gunicorn
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|