-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
almalinux-devtoolset11
image (#38)
As alternative to `centos7-devtoolset7` which: - No longer builds (because `mirrorlist.centos.org` is offline) - Doesn't support Node.js >= 18 - Doesn't support C++ 20 - Ships an EOL python version (3.6.8) which doesn't work with node-gyp 10 Ref: prebuild/prebuildify-cross#13 Ref: Level/classic-level#103 (comment)
- Loading branch information
Showing
6 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM almalinux:8-minimal | ||
|
||
USER 0 | ||
|
||
# Need shadow-utils for groupadd and useradd | ||
RUN curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - && \ | ||
microdnf install -y shadow-utils make nodejs python3.11 gcc-toolset-11 && \ | ||
ln -s python3.11 /usr/bin/python && \ | ||
microdnf clean all && \ | ||
rm -rf /var/cache/yum && \ | ||
groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \ | ||
groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis && \ | ||
npm -v && \ | ||
python --version | ||
|
||
USER node | ||
ENV HOME=/home/node | ||
|
||
# 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 | ||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters