changeset 7149:282ba72a5615

pin python image versions using sha256 sum
author John Rouillard <rouilj@ieee.org>
date Thu, 16 Feb 2023 21:56:08 -0500
parents cc49ac11850f
children 72a54826ff4f
files scripts/Docker/Dockerfile
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/Docker/Dockerfile	Thu Feb 16 20:12:55 2023 -0500
+++ b/scripts/Docker/Dockerfile	Thu Feb 16 21:56:08 2023 -0500
@@ -22,7 +22,8 @@
 # COPY from install dir in second stage.
 ARG pythonversion=3.11
 
-FROM python:3-alpine as build
+#FROM python:3-alpine
+FROM python@sha256:1c7b5a998076ab7aa0a8745ab1461441a5bdc61e366985b9bfe3f4044c2b4503 as build
 
 # Inherit global values https://github.com/moby/moby/issues/37345
 ARG appdir
@@ -127,7 +128,8 @@
 
 # build a new smaller docker image for execution. Build image above
 # is 1G in size.
-FROM python:3-alpine
+# FROM python:3-alpine
+FROM python@sha256:1c7b5a998076ab7aa0a8745ab1461441a5bdc61e366985b9bfe3f4044c2b4503 
 
 # import from global
 ARG appdir

Roundup Issue Tracker: http://roundup-tracker.org/