Spaces:
Paused
Paused
File size: 487 Bytes
4543e35 | 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 27 | FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install browsers
RUN playwright install chromium
RUN playwright install-deps chromium
# Copy application
COPY . .
# Environment variables
ENV PORT=7860
ENV VIEWPORT_WIDTH=1280
ENV VIEWPORT_HEIGHT=800
ENV DEFAULT_URL=https://www.google.com
# Expose port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]
|