Skip to content

Commit 12a0cb2

Browse files
committed
fixup, setup venv running as 1001
1 parent 31a6c9d commit 12a0cb2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

base/c9s-python-3.9/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ ENV VIRTUAL_ENV="/opt/app-root"
66
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
77
RUN useradd --uid 1001 --gid 0 --create-home --base-dir / --home-dir /opt/app-root/src \
88
--comment "Default Application User" --shell /bin/bash default && \
9-
dnf install -y python3-pip && dnf clean all && rm -rf /var/cache/yum/* && \
10-
python3.9 -m venv "${VIRTUAL_ENV}"
9+
dnf install -y python3-pip && dnf clean all && rm -rf /var/cache/yum/*
1110

1211
USER 1001
12+
RUN python3.9 -m venv "${VIRTUAL_ENV}"
1313

1414
LABEL name="odh-notebook-base-centos-stream9-python-3.9" \
1515
summary="Python 3.9 CentOS Stream 9 base image for ODH notebooks" \

base/ubi9-python-3.11/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN useradd --uid 1001 --gid 0 --create-home --base-dir / --home-dir /opt/app-ro
1010
python3.11 -m venv "${VIRTUAL_ENV}"
1111

1212
USER 1001
13+
RUN python3.8 -m venv "${VIRTUAL_ENV}"
1314

1415
LABEL name="odh-notebook-base-ubi9-python-3.11" \
1516
summary="Python 3.11 base image for ODH notebooks" \

base/ubi9-python-3.9/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ ENV VIRTUAL_ENV="/opt/app-root"
66
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
77
RUN useradd --uid 1001 --gid 0 --create-home --base-dir / --home-dir /opt/app-root/src \
88
--comment "Default Application User" --shell /bin/bash default && \
9-
dnf install -y python3-pip && dnf clean all && rm -rf /var/cache/yum/* && \
10-
python3.9 -m venv "${VIRTUAL_ENV}"
9+
dnf install -y python3-pip && dnf clean all && rm -rf /var/cache/yum/*
1110

1211
USER 1001
12+
python3.9 -m venv "${VIRTUAL_ENV}"
1313

1414
LABEL name="odh-notebook-base-ubi9-python-3.9" \
1515
summary="Python 3.9 base image for ODH notebooks" \

0 commit comments

Comments
 (0)