Created
July 29, 2019 17:38
-
-
Save luizrobertofreitas/6e3c3407df467cf9457bc7617938d492 to your computer and use it in GitHub Desktop.
NodeJS 10 Dockerfile for Openshift Jenkins Slaves
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
FROM openshift/jenkins-slave-base-centos7 | |
USER root | |
RUN curl -skL -o nodejs-bin.tar.xz https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz && \ | |
tar -xf nodejs-bin.tar.xz && \ | |
mv node-v10.16.0-linux-x64 /opt/nodejs | |
RUN ln -sf /opt/nodejs/bin/node /usr/local/bin/node && \ | |
ln -sf /opt/nodejs/bin/npm /usr/local/bin/npm && \ | |
ln -sf /opt/nodejs/bin/npx /usr/local/bin/npx | |
RUN chown -R 1001:0 /opt/nodejs && \ | |
chmod -R g+rw /opt/nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment