feat(preprocessing): add first version of preprocessing, dockerize news job processing

This commit is contained in:
2026-07-14 19:02:40 +02:00
parent 5d1d62acb8
commit 532c94b00b
9 changed files with 491 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# Preprocessing worker, news enrichment job (v1)
FROM python:3.13-slim
WORKDIR /app
# Install dependencies first so this layer is cached when only code changes.
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the job code. No secrets here, config is read from env vars at runtime.
COPY app/ ./
# Small dispatcher that maps a job name to the right command.
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]