Skip to content

Instantly share code, notes, and snippets.

@luizrobertofreitas
Created July 29, 2019 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizrobertofreitas/6e3c3407df467cf9457bc7617938d492 to your computer and use it in GitHub Desktop.
Save luizrobertofreitas/6e3c3407df467cf9457bc7617938d492 to your computer and use it in GitHub Desktop.
NodeJS 10 Dockerfile for Openshift Jenkins Slaves
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