Spaces:
Sleeping

Space1 / Dockerfile
YashaswiAbhinav
Streamline requirements for Python 3.11
890b184
Raw History Blame Contribute Delete
344 Bytes
# Use official Python runtime
FROM python:3.11
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all files
COPY . .
# Expose port 7860 (Hugging Face requirement)
EXPOSE 7860
# Run with Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]