hns-email/Dockerfile

17 lines
334 B
Docker
Raw Permalink Normal View History

2024-10-04 17:33:04 +10:00
FROM --platform=$BUILDPLATFORM python:3.10-alpine AS builder
WORKDIR /app
COPY requirements.txt /app
RUN --mount=type=cache,target=/root/.cache/pip \
python3 -m pip install -r requirements.txt
COPY . /app
# Optionally mount /data to store the data
2024-10-04 20:43:58 +10:00
VOLUME /data
2024-10-04 17:33:04 +10:00
ENTRYPOINT ["python3"]
CMD ["main.py"]
FROM builder as dev-envs