aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2023-03-18 03:49:47 +0400
committerGravatar Hassan Abouelela <[email protected]>2023-03-18 05:57:15 +0400
commit3d9eff479c156f78eb1e71f2df42340327820909 (patch)
treeb8a7ec6387c7508908a5f8597c5152f363653758 /Dockerfile
parentDocument Python Version Selection (diff)
Add Slim Imagemulti-version
Adds an image with only one python version installed. This can be useful in development environments for other projects where the multi-version features are less useful than a more efficient container. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 015e9d1..60f3786 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,13 +22,16 @@ RUN make
# ------------------------------------------------------------------------------
FROM python:3.11-slim-buster as base-first
-FROM python:3.10-slim-buster as base-3-10
+FROM python:3.7-slim-buster as base-3-7
COPY --from=base-first / /
+FROM python:3.9-slim-buster as base-3-9
+COPY --from=base-3-7 / /
+
# ------------------------------------------------------------------------------
FROM python:3.11-slim-buster as base
-COPY --from=base-3-10 / /
+COPY --from=base-3-9 / /
# Everything will be a user install to allow snekbox's dependencies to be kept
# separate from the packages exposed during eval.