daily-snorter / Dockerfile
allyboyboy's picture
Initial deployment of The Daily Snorter
555aaab verified
raw
history blame contribute delete
356 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt gunicorn
# Copy application
COPY . .
# HuggingFace Spaces expects port 7860
EXPOSE 7860
# Run with gunicorn for production
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "webapp:app"]