You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RHAIENG-287: fix(Dockerfiles): use FROM stage alias to avoid Hadolint DL3022 warning
```
`FROM` alias
./runtimes/tensorflow/ubi9-python-3.12/Dockerfile.cuda:23 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
./runtimes/minimal/ubi9-python-3.12/Dockerfile.cpu:19 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
./runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu:21 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
./runtimes/rocm-pytorch/ubi9-python-3.12/Dockerfile.rocm:19 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
./runtimes/pytorch/ubi9-python-3.12/Dockerfile.cuda:21 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
./runtimes/rocm-tensorflow/ubi9-python-3.12/Dockerfile.rocm:19 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
./codeserver/ubi9-python-3.12/Dockerfile.cpu:20 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
./codeserver/ubi9-python-3.12/Dockerfile.cpu:77 DL3022 warning: `COPY --from` should reference a previously defined `FROM` alias
```
Copy file name to clipboardExpand all lines: codeserver/ubi9-python-3.12/Dockerfile.cpu
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,9 @@
3
3
#########################
4
4
ARG BASE_IMAGE
5
5
6
+
# External image alias for UBI repository configuration
7
+
FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
8
+
6
9
####################
7
10
# rpm-base #
8
11
####################
@@ -17,7 +20,7 @@ ENV HOME=/root
17
20
# Inject the official UBI 9 repository configuration into the AIPCC base image.
18
21
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
19
22
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
# Inject the official UBI 9 repository configuration into the AIPCC base image.
75
78
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
76
79
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
# Inject the official UBI 9 repository configuration into the AIPCC base image.
45
48
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
46
49
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
Copy file name to clipboardExpand all lines: jupyter/minimal/ubi9-python-3.12/Dockerfile.cpu
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,9 @@
3
3
#########################
4
4
ARG BASE_IMAGE
5
5
6
+
# External image alias for UBI repository configuration
7
+
FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
8
+
6
9
####################
7
10
# cpu-base #
8
11
####################
@@ -16,7 +19,7 @@ USER 0
16
19
# Inject the official UBI 9 repository configuration into the AIPCC base image.
17
20
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
18
21
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
Copy file name to clipboardExpand all lines: jupyter/minimal/ubi9-python-3.12/Dockerfile.cuda
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ ARG TARGETARCH
5
5
#########################
6
6
ARG BASE_IMAGE
7
7
8
+
# External image alias for UBI repository configuration
9
+
FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
10
+
8
11
####################
9
12
# cuda-base #
10
13
####################
@@ -18,7 +21,7 @@ USER 0
18
21
# Inject the official UBI 9 repository configuration into the AIPCC base image.
19
22
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
20
23
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
Copy file name to clipboardExpand all lines: jupyter/minimal/ubi9-python-3.12/Dockerfile.rocm
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,9 @@
3
3
#########################
4
4
ARG BASE_IMAGE
5
5
6
+
# External image alias for UBI repository configuration
7
+
FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
8
+
6
9
####################
7
10
# rocm-base #
8
11
####################
@@ -16,7 +19,7 @@ USER 0
16
19
# Inject the official UBI 9 repository configuration into the AIPCC base image.
17
20
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
18
21
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
# Inject the official UBI 9 repository configuration into the AIPCC base image.
32
35
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
33
36
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
# Inject the official UBI 9 repository configuration into the AIPCC base image.
32
35
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
33
36
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
# Inject the official UBI 9 repository configuration into the AIPCC base image.
30
33
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
31
34
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
# Inject the official UBI 9 repository configuration into the AIPCC base image.
30
33
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
31
34
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
# Inject the official UBI 9 repository configuration into the AIPCC base image.
32
35
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
33
36
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
0 commit comments