forked from RedHat-Israel/ROSE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 RedHat-Israel#451
- Loading branch information
Showing
2 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -14,14 +14,13 @@ COPY Pipfile ./Pipfile | |
# Generate requirements.txt file from Pipfile | ||
RUN if [ -z ${DEV} ]; \ | ||
then \ | ||
pipenv lock -r > requirements.txt; \ | ||
pipenv lock > requirements.txt; \ | ||
else \ | ||
pipenv lock --dev -r > requirements.txt; \ | ||
pipenv lock --dev > requirements.txt; \ | ||
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]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ idna = ">=2.5,<3" | |
|
||
[requires] | ||
|
||
python_version = "3.7" | ||
python_version = "3.9" |