windowgame / Dockerfile
WACATW's picture
Upload 8 files
4543e35 verified
Raw History Blame Contribute Delete
487 Bytes
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"]