-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 942 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (22 loc) · 942 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
# VoiceFlip Technical Challenge — application image.
# Includes Chromium so the Selenium dynamic scraper works inside the container;
# the deterministic demo (demo_change_detection.py) needs only PostgreSQL.
FROM python:3.12-slim
# Chromium + driver for Selenium, and pg client tools for healthchecks/debug.
RUN apt-get update && apt-get install -y --no-install-recommends \
chromium \
chromium-driver \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
ENV CHROME_BIN=/usr/bin/chromium \
CHROMEDRIVER_PATH=/usr/bin/chromedriver \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Application code lives in the TechChallengeVF/ package dir.
COPY TechChallengeVF/ ./TechChallengeVF/
WORKDIR /app/TechChallengeVF
# Default: run the offline change-detection demo (E1–E5).
CMD ["python", "demo_change_detection.py"]