We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e63819 commit 487905cCopy full SHA for 487905c
base/ubi9-python-3.11/Dockerfile
@@ -4,7 +4,8 @@ FROM registry.access.redhat.com/ubi9/ubi:latest
4
# but this way it uses a lot less disk space (hundreds of megabytes less)
5
ENV VIRTUAL_ENV="/opt/app-root"
6
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
7
-RUN useradd --uid 1001 --gid 0 --create-home --base-dir / --home-dir /opt/app-root/src \
+RUN mkdir --parents --mode 0771 "${VIRTUAL_ENV}/src" && chown --recursive 1001:0 ${VIRTUAL_ENV} && \
8
+ useradd --uid 1001 --gid 0 --home-dir "${VIRTUAL_ENV}/src" \
9
--comment "Default Application User" --shell /bin/bash default && \
10
dnf install -y python311-pip && dnf clean all && rm -rf /var/cache/yum/* && \
11
python3.11 -m venv "${VIRTUAL_ENV}"
0 commit comments