-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
33 lines (21 loc) · 907 Bytes
/
Containerfile
File metadata and controls
33 lines (21 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM docker.io/continuumio/miniconda3:latest AS miniconda3
WORKDIR /app
RUN conda install -y --download-only "python=3.13" && \
conda install -y --download-only "python=3.12" && \
conda install -y --download-only "python=3.11" && \
conda install -y --download-only "python=3.10"
COPY . ./
ENTRYPOINT ["python3"]
CMD ["run-script"]
FROM miniconda3 AS py313
RUN conda install -y "python=3.13"
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install
FROM miniconda3 AS py312
RUN conda install -y "python=3.12"
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install
FROM miniconda3 AS py311
RUN conda install -y "python=3.11"
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install
FROM miniconda3 AS py310
RUN conda install -y "python=3.10"
RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install