Skip to content

Commit

Permalink
Just add to PATH for now
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Oct 20, 2024
1 parent 1f975dd commit c9102e3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions almalinux-devtoolset11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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 <stdio.h>\n#include <gnu/libc-version.h>\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

0 comments on commit c9102e3

Please sign in to comment.