File tree Expand file tree Collapse file tree 3 files changed +37
-4
lines changed Expand file tree Collapse file tree 3 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM quay.io/sclorg/python-39-c9s:c9s
1
+ FROM quay.io/centos/centos:stream9
2
+
3
+ # perform the setup that python image used to do for us
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 \
8
+ --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}"
11
+
12
+ USER 1001
2
13
3
14
LABEL name="odh-notebook-base-centos-stream9-python-3.9" \
4
15
summary="Python 3.9 CentOS Stream 9 base image for ODH notebooks" \
Original file line number Diff line number Diff line change 1
- FROM registry.access.redhat.com/ubi9/python-311:latest
1
+ FROM registry.access.redhat.com/ubi9/ubi:latest
2
+
3
+ # perform the setup that python s2i image used to do for us
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 \
8
+ --comment "Default Application User" --shell /bin/bash default && \
9
+ dnf install -y python311-pip && dnf clean all && rm -rf /var/cache/yum/* && \
10
+ python3.11 -m venv "${VIRTUAL_ENV}"
11
+
12
+ USER 1001
2
13
3
14
LABEL name="odh-notebook-base-ubi9-python-3.11" \
4
15
summary="Python 3.11 base image for ODH notebooks" \
@@ -18,7 +29,7 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
18
29
# Install Python dependencies from Pipfile.lock file
19
30
COPY Pipfile.lock ./
20
31
21
- RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
32
+ RUN echo "Installing software and packages" && micropipenv install && rm -f ./Pipfile.lock
22
33
23
34
# OS Packages needs to be installed as root
24
35
USER root
Original file line number Diff line number Diff line change 1
- FROM registry.access.redhat.com/ubi9/python-39:latest
1
+ FROM registry.access.redhat.com/ubi9/ubi:latest
2
+
3
+ # perform the setup that python s2i image used to do for us
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 \
8
+ --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}"
11
+
12
+ USER 1001
2
13
3
14
LABEL name="odh-notebook-base-ubi9-python-3.9" \
4
15
summary="Python 3.9 base image for ODH notebooks" \
You can’t perform that action at this time.
0 commit comments