feat(preprocessing): add first version of preprocessing, dockerize news job processing
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user