mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 17:03:13 +00:00
Keep the Flask app always-on with in-process jobs so CloudFront no longer fronts a cold-start API Gateway.
17 lines
440 B
Docker
17 lines
440 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
COPY src/shared/requirements.txt /tmp/shared-requirements.txt
|
|
COPY requirements-api.txt /tmp/requirements-api.txt
|
|
RUN pip install --no-cache-dir -r /tmp/shared-requirements.txt -r /tmp/requirements-api.txt
|
|
|
|
COPY src /app/src
|
|
|
|
ARG GIT_SHA=dev
|
|
ENV PYTHONPATH=/app/src:/app/src/shared \
|
|
GIT_SHA=${GIT_SHA} \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app/src
|
|
EXPOSE 8080
|
|
CMD ["python", "-m", "server.entrypoint"]
|