Skip to content

Commit 3d4924a

Browse files
committed
refactor(dockerfile-linux): use the Python version passed to the templating engine
Now, that's a separate variable. Previously, the Python version was embedded in the variant name.
1 parent 6231a22 commit 3d4924a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile-linux.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{
22
def is_alpine:
3-
env.variant | contains("-alpine")
3+
env.variant | contains("alpine")
44
;
55
def is_slim:
66
env.variant | contains("-slim-")
77
-}}
8-
FROM python:{{ env.variant | ltrimstr("py") }}
8+
FROM python:{{ env.python_version }}-{{ env.variant }}
99

1010
# runtime dependencies
1111
RUN set -eux; \

0 commit comments

Comments
 (0)