-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 608 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM mcr.microsoft.com/playwright/python:v1.49.1-jammy
# Set working directory
WORKDIR /app
# Copy application code
COPY . .
# Install Python dependencies
# Official image has system dependencies, we just need python deps
RUN pip install --no-cache-dir -r requirements-full.txt && \
playwright install chromium
# Set production environment variables
ENV FLASK_CONFIG=production
ENV FLASK_ENV=production
# Expose port
EXPOSE 5000
# Start app using PORT environment variable (default 5000) for compatibility with Zeabur/Heroku
CMD gunicorn -b 0.0.0.0:${PORT:-5000} main:app --timeout 120 --workers 1