diff options
author | 2023-03-18 03:49:47 +0400 | |
---|---|---|
committer | 2023-03-18 05:57:15 +0400 | |
commit | 3d9eff479c156f78eb1e71f2df42340327820909 (patch) | |
tree | b8a7ec6387c7508908a5f8597c5152f363653758 /Dockerfile | |
parent | Document 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-- | Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. |