Nathanwoodburn.github.io/Dockerfile

17 lines
317 B
Docker
Raw Permalink Normal View History

2023-11-02 20:26:15 +11:00
FROM --platform=$BUILDPLATFORM python:3.10-alpine AS builder
WORKDIR /app
COPY requirements.txt /app
RUN --mount=type=cache,target=/root/.cache/pip \
pip3 install -r requirements.txt
COPY . /app
# Add mount point for data volume
2023-11-03 12:11:49 +11:00
# VOLUME /data
2023-11-02 20:26:15 +11:00
ENTRYPOINT ["python3"]
2023-11-02 21:06:43 +11:00
CMD ["main.py"]
2023-11-02 20:26:15 +11:00
FROM builder as dev-envs