From c9102e3065ee19b45f8a24c61b8445a50ec81f3b Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Mon, 21 Oct 2024 00:07:18 +0200 Subject: [PATCH] Just add to PATH for now --- almalinux-devtoolset11/Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/almalinux-devtoolset11/Dockerfile b/almalinux-devtoolset11/Dockerfile index 69d0eff..0d07b6a 100644 --- a/almalinux-devtoolset11/Dockerfile +++ b/almalinux-devtoolset11/Dockerfile @@ -3,10 +3,8 @@ FROM almalinux:8-minimal USER 0 # Need shadow-utils for groupadd and useradd -# TODO: "source scl_source enable gcc-toolset-11" only applies to current session RUN curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - && \ microdnf install -y shadow-utils make nodejs python3 gcc-toolset-11 && \ - source scl_source enable gcc-toolset-11 && \ ln -s python3 /usr/bin/python && \ microdnf clean all && \ rm -rf /var/cache/yum && \ @@ -16,14 +14,13 @@ RUN curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - && \ python --version USER node -ENV HOME /home/node +ENV HOME=/home/node -# Testing -RUN gcc -dumpversion -RUN echo -e '#include \n#include \nint main(){printf("%u.%u\\n",__GLIBC__,__GLIBC_MINOR__);}' | gcc -xc++ -o dummy - && ./dummy +# Add gcc to PATH as alternative to "source scl_source enable gcc-toolset-11" +ENV PATH=/opt/rh/gcc-toolset-11/root/usr/bin:$PATH # Disable npm update check -ENV NO_UPDATE_NOTIFIER true -ENV npm_config_update_notifier false +ENV NO_UPDATE_NOTIFIER=true +ENV npm_config_update_notifier=false WORKDIR /app