Skip to content

Commit

Permalink
feat: Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored May 18, 2023
1 parent c1ca710 commit fd3e747
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ ENV \
PYTHONIOENCODING=UTF-8 \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
CNB_STACK_ID=ch.rabe.it.stacks.ubi9-python-39 \
CNB_STACK_ID=ch.rabe.it.stacks.ubi9-python-311 \
CNB_USER_ID=1001 \
CNB_GROUP_ID=0 \
PIP_NO_CACHE_DIR=off \
PATH=$APP_ROOT/bin:$HOME/bin:$HOME/.local/bin:$PATH

COPY --from=registry.access.redhat.com/ubi9/python-39:1-90 \
COPY --from=registry.access.redhat.com/ubi9/python-311:1-7 \
$STI_SCRIPTS_PATH/assemble \
$STI_SCRIPTS_PATH/init-wrapper \
$STI_SCRIPTS_PATH/run \
$STI_SCRIPTS_PATH/usage \
$STI_SCRIPTS_PATH/
COPY --from=registry.access.redhat.com/ubi9/python-39:1-90 \
COPY --from=registry.access.redhat.com/ubi9/python-311:1-7 \
$APP_ROOT/etc/scl_enable \
$APP_ROOT/etc/

Expand All @@ -30,13 +30,13 @@ ENV BASH_ENV=${APP_ROOT}/etc/scl_enable \

RUN microdnf install -y \
nss_wrapper \
python3 \
python3-pip-wheel \
python3-wheel-wheel \
python3.11 \
python3.11-pip-wheel \
python3.11-wheel-wheel \
&& microdnf clean all \
&& python3.9 -mvenv ${APP_ROOT} \
&& python3.9 -mpip install /usr/share/python3-wheels/wheel-*.whl \
&& python3.9 -mpip install build \
&& python3.11 -mvenv ${APP_ROOT} \
&& python3.11 -mpip install /usr/share/python3-wheels/wheel-*.whl \
&& python3.11 -mpip install build \
&& chown -R 1001:0 ${APP_ROOT} \
&& fix-permissions ${APP_ROOT} -P \
&& rpm-file-permissions
Expand Down

0 comments on commit fd3e747

Please sign in to comment.