From 54d199b1eaf2042abfd48f353e8f26e163be7152 Mon Sep 17 00:00:00 2001 From: Igor Troyanovsky Date: Mon, 24 Apr 2023 08:22:10 +0300 Subject: [PATCH] Using UBI work image for smaller container size If possible to upgrade to Python 3.9, we could use the UBI9 Python image to reduce size. Fixes #451 --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9136868..7d0baacd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Generate a container that generates requirements.txt -ARG PY_VERSION=3.7 +ARG PY_VERSION=3.9 FROM python:${PY_VERSION} as source ARG DEV @@ -20,8 +20,7 @@ RUN if [ -z ${DEV} ]; \ fi # Generate work image -ARG PY_VERSION -FROM python:${PY_VERSION} +FROM registry.access.redhat.com/ubi9/python-39 # Project maintainer LABEL maintainer="frolland@redhat.com"