Spaces:
Sleeping
Sleeping
File size: 532 Bytes
3cf83a2 5d99bf3 3cf83a2 | 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 26 | # Use the official Python 3.12 image
FROM python:3.12-slim
# Set the working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install Playwright browser and system dependencies
RUN playwright install --with-deps chromium
# Copy the application code
COPY . .
# Hugging Face Spaces uses port 7860 by default
ENV PORT=7860
ENV DEBUG=false
# Expose the port
EXPOSE 7860
# Run the application with waitress for production
CMD ["python", "app.py"]
|