Skip to content

Commit 62b5319

Browse files
authored
Updated Dockerfile to fix nodejs installation (#1744)
nodejs version was hardcoded and that version is no longer available in the repository. I updated the Dockerfile to just use the nodejs version in the module nodejs:20 I added `--disableplugin=subscription-manager` to each `dnf` command so it cleans up some of the noise when watching the build logs. I successfully ran the build locally - fwiw.
1 parent dd317aa commit 62b5319

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ USER root
2323

2424
# Upgrade NodeJS > 12.0
2525
# Install dos2unix for line end conversion on Windows
26-
RUN dnf remove -y nodejs && \
27-
dnf module -y reset nodejs && \
28-
dnf module -y enable nodejs:20 && \
29-
dnf install -y nodejs-20.9.0 mesa-libGL dos2unix libsndfile && \
30-
dnf -y update-minimal --security --sec-severity=Important --sec-severity=Critical --sec-severity=Moderate
26+
RUN dnf --disableplugin=subscription-manager remove -y nodejs && \
27+
dnf --disableplugin=subscription-manager module -y reset nodejs && \
28+
dnf --disableplugin=subscription-manager module -y enable nodejs:20 && \
29+
dnf --disableplugin=subscription-manager install -y nodejs mesa-libGL dos2unix libsndfile && \
30+
dnf --disableplugin=subscription-manager -y update-minimal --security --sec-severity=Important --sec-severity=Critical --sec-severity=Moderate
3131

3232
# GPU drivers
33-
RUN dnf install -y 'dnf-command(config-manager)' && \
34-
dnf config-manager --add-repo https://repositories.intel.com/graphics/rhel/8.5/intel-graphics.repo
33+
RUN dnf --disableplugin=subscription-manager install -y 'dnf-command(config-manager)' && \
34+
dnf --disableplugin=subscription-manager config-manager --add-repo https://repositories.intel.com/graphics/rhel/8.5/intel-graphics.repo
3535

3636
RUN rpm -ivh https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/mesa-filesystem-21.1.5-1.el8.x86_64.rpm && \
37-
dnf install --refresh -y \
37+
dnf --disableplugin=subscription-manager install --refresh -y \
3838
intel-opencl-22.28.23726.1-i419.el8.x86_64 intel-media intel-mediasdk libmfxgen1 libvpl2 \
3939
level-zero intel-level-zero-gpu \
4040
intel-metrics-library intel-igc-core intel-igc-cm \

0 commit comments

Comments
 (0)