mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 12:33:13 +00:00
26 lines
807 B
Text
26 lines
807 B
Text
|
|
FROM python:3.12-slim
|
||
|
|
|
||
|
|
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"]
|