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 \
|
2024-07-01 13:05:11 +10:00
|
|
|
python3 -m pip install -r requirements.txt
|
2023-11-02 20:26:15 +11:00
|
|
|
|
|
|
|
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
|
|
|
|
2024-12-19 12:33:56 +11:00
|
|
|
FROM builder AS dev-envs
|