Skip to content

Commit

Permalink
Using UBI work image for smaller container size
Browse files Browse the repository at this point in the history
If possible to upgrade to Python 3.9, we could use the UBI9 Python image to reduce size.
Fixes #451
  • Loading branch information
itroyano authored Apr 24, 2023
1 parent 7ee96f5 commit 54d199b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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="[email protected]"
Expand Down

0 comments on commit 54d199b

Please sign in to comment.