-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 894 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 894 Bytes
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
28
29
30
31
32
FROM python:3.11-slim
# Playwright system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl wget ca-certificates fonts-liberation \
libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libdrm2 \
libgbm1 libgtk-3-0 libnspr4 libnss3 libu2f-udev \
libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 \
libxrandr2 xdg-utils \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python deps first (caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install Playwright Chromium (only the browser, not the full Playwright test runner)
RUN python -m playwright install chromium --with-deps
# Copy app code
COPY app.py dashboard.html smoke_test.py clean_jobs.py ./
# Create product directories
RUN mkdir -p data outputs attachments
ENV HOST=0.0.0.0
ENV PORT=5000
EXPOSE 5000
CMD ["python", "app.py"]