2026-09-22 14:23:38 +00:00
|
|
|
FROM python:3.12-slim@sha256:2f17fc044b579bab302c2e8054d3a686e2cb9a83de48e70534b94cd8ebbe06a9
|
2026-09-21 19:13:30 +00:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
COPY src/shared/requirements.txt /tmp/shared-requirements.txt
|
|
|
|
|
COPY src/slack-bot/requirements.txt /tmp/slack-bot-requirements.txt
|
|
|
|
|
COPY src/weekly-post/requirements.txt /tmp/weekly-post-requirements.txt
|
|
|
|
|
COPY src/portal-api/requirements.txt /tmp/portal-api-requirements.txt
|
|
|
|
|
COPY requirements-api.txt /tmp/requirements-api.txt
|
|
|
|
|
RUN pip install --no-cache-dir \
|
|
|
|
|
-r /tmp/shared-requirements.txt \
|
|
|
|
|
-r /tmp/slack-bot-requirements.txt \
|
|
|
|
|
-r /tmp/weekly-post-requirements.txt \
|
|
|
|
|
-r /tmp/portal-api-requirements.txt \
|
|
|
|
|
-r /tmp/requirements-api.txt
|
|
|
|
|
|
|
|
|
|
COPY src /app/src
|
|
|
|
|
|
|
|
|
|
ARG GIT_SHA=dev
|
|
|
|
|
ENV PYTHONPATH=/app/src:/app/src/shared:/app/src/slack-bot \
|
|
|
|
|
GIT_SHA=${GIT_SHA} \
|
|
|
|
|
PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
|
|
|
WORKDIR /app/src
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
CMD ["python", "-m", "server.entrypoint"]
|