Skip to content

Commit 32ff105

Browse files
committed
chore: upgrade to newest python:3-alpine.
1 parent 5627488 commit 32ff105

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/Docker/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2929
ARG 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
4040
FROM python@sha256:$SHA256 as build
@@ -83,6 +83,7 @@ ENV PIP_ROOT_USER_ACTION=ignore
8383

8484
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
8585
ARG VERBOSE
86+
ARG pythonversion
8687

8788
RUN [ -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 && \

0 commit comments

Comments
 (0)