Spaces:
Sleeping
Sleeping
File size: 481 Bytes
505eb0d 7dc098a 505eb0d 7dc098a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Use official lightweight Python image
FROM python:3.11-slim
# Prevent Python from writing pyc files
ENV PYTHONDONTWRITEBYTECODE=1
# Prevent Python from buffering stdout/stderr
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port
EXPOSE 7860
# Run app using Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |