File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ARG source=local
2323
2424# parameterize the sha256 sum to pin version of python:3-alpine
2525# Must use the same version in both build stages.
26- ARG SHA256=5d769f990397afbb2aca24b0655e404c0f2806d268f454b052e81e39d87abf42
26+ ARG SHA256=ae35274f417fc81ba6ee1fc84206e8517f28117566ee6a04a64f004c1409bdac
2727
2828# Set to any non-empy value to enable shell debugging for troubleshooting
2929ARG VERBOSE=
@@ -34,7 +34,7 @@ ARG appdir=/usr/src/app
3434# Python version as a.b Used as path component for
3535# installation directory and COPY from install dir
3636# in second build stage.
37- ARG pythonversion=3.11
37+ ARG pythonversion=3.12
3838
3939# FROM python:3-alpine via SHA256 sum
4040FROM python@sha256:$SHA256 as build
@@ -83,6 +83,7 @@ ENV PIP_ROOT_USER_ACTION=ignore
8383
8484SHELL ["/bin/ash" , "-eo" , "pipefail" , "-c" ]
8585ARG VERBOSE
86+ ARG pythonversion
8687
8788RUN [ -z "${VERBOSE}" ] || set -xv; \
8889 CWD="$PWD" && \
@@ -95,7 +96,7 @@ RUN [ -z "${VERBOSE}" ] || set -xv; \
9596 else \
9697 echo "Nothing to pip update" ; \
9798 fi; \
98- ls -l /usr/local/lib/python3.11 /site-packages; \
99+ ls -l /usr/local/lib/python${pythonversion} /site-packages; \
99100 VER=$(apk list -I 'xapian-core-dev' | \
100101 sed 's/^xapian-core-dev-\( [0-9.]*\) -.*/\1 /' ) && \
101102 cd /tmp && \
You can’t perform that action at this time.
0 commit comments