Spaces:
Runtime error
Runtime error
File size: 510 Bytes
2b81d4d e0d8c79 2b81d4d e0d8c79 2b81d4d e0d8c79 2b81d4d e0d8c79 2b81d4d e0d8c79 2b81d4d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use official Playwright Python image (includes Chromium + deps)
FROM mcr.microsoft.com/playwright/python:v1.42.0-jammy
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir flask playwright
# Install Playwright browsers (already included, but safe)
RUN playwright install chromium
# Expose Flask port
EXPOSE 5000
# Prevent Flask from using reloader inside Docker
ENV FLASK_ENV=production
# Run the app
CMD ["python", "app.py"]
|