comparison scripts/Docker/Dockerfile @ 7266:543b9d6d0e11

use latest 3-alpine at 18M rather than latest ubuntu based python image, dependabot seems to not properly track subypes
author John Rouillard <rouilj@ieee.org>
date Wed, 19 Apr 2023 22:30:00 -0400
parents bb070f559a80
children 96a2bcb1bf1d
comparison
equal deleted inserted replaced
7265:c7eafc398acf 7266:543b9d6d0e11
22 # Python version as a.b Used for installation directory and 22 # Python version as a.b Used for installation directory and
23 # COPY from install dir in second stage. 23 # COPY from install dir in second stage.
24 ARG pythonversion=3.11 24 ARG pythonversion=3.11
25 25
26 #FROM python:3-alpine 26 #FROM python:3-alpine
27 FROM python@sha256:f7382f4f9dbc51183c72d621b9c196c1565f713a1fe40c119d215c961fa22815 as build 27 FROM python@sha256:507818d46649f8543e58d19a00e3a1a428bb7e87c0bf7f7d1ffe7b076cda11be as build
28 28
29 # Inherit global values https://github.com/moby/moby/issues/37345 29 # Inherit global values https://github.com/moby/moby/issues/37345
30 ARG appdir 30 ARG appdir
31 31
32 WORKDIR $appdir 32 WORKDIR $appdir
131 RUN if [ -n "$pip_mod" ]; then pip install --no-cache-dir ${pip_mod}; fi 131 RUN if [ -n "$pip_mod" ]; then pip install --no-cache-dir ${pip_mod}; fi
132 132
133 # build a new smaller docker image for execution. Build image above 133 # build a new smaller docker image for execution. Build image above
134 # is 1G in size. 134 # is 1G in size.
135 # FROM python:3-alpine 135 # FROM python:3-alpine
136 FROM python@sha256:f7382f4f9dbc51183c72d621b9c196c1565f713a1fe40c119d215c961fa22815 136 FROM python@sha256:507818d46649f8543e58d19a00e3a1a428bb7e87c0bf7f7d1ffe7b076cda11be
137 137
138 # import from global 138 # import from global
139 ARG appdir 139 ARG appdir
140 140
141 WORKDIR $appdir 141 WORKDIR $appdir

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