Skip to content

Commit 6651109

Browse files
committed
pin python image versions using sha256 sum
1 parent 418ae5c commit 6651109

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/Docker/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ ARG source=local
2222
# COPY from install dir in second stage.
2323
ARG pythonversion=3.11
2424

25-
FROM python:3-alpine as build
25+
#FROM python:3-alpine
26+
FROM python@sha256:1c7b5a998076ab7aa0a8745ab1461441a5bdc61e366985b9bfe3f4044c2b4503 as build
2627

2728
# Inherit global values https://github.com/moby/moby/issues/37345
2829
ARG appdir
@@ -127,7 +128,8 @@ RUN if [ -n "$pip_mod" ]; then pip install --no-cache-dir ${pip_mod}; fi
127128

128129
# build a new smaller docker image for execution. Build image above
129130
# is 1G in size.
130-
FROM python:3-alpine
131+
# FROM python:3-alpine
132+
FROM python@sha256:1c7b5a998076ab7aa0a8745ab1461441a5bdc61e366985b9bfe3f4044c2b4503
131133

132134
# import from global
133135
ARG appdir

0 commit comments

Comments
 (0)