Skip to content

Instantly share code, notes, and snippets.

@romant
Last active February 12, 2022 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save romant/2e31a44501208245db9f to your computer and use it in GitHub Desktop.
Save romant/2e31a44501208245db9f to your computer and use it in GitHub Desktop.
Photon OS Base Image for Node.js Deployment
FROM photon
MAINTAINER Roman Tarnavski
WORKDIR /node
RUN tdnf install -y tar gzip xz
RUN curl -O https://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-x64.tar.xz && \
tar -xJf node-v4.2.4-linux-x64.tar.xz && \
ln -sf /node/node-v4.2.4-linux-x64/bin/node /usr/bin/node && \
ln -sf /node/node-v4.2.4-linux-x64/bin/npm /usr/bin/npm
CMD [ "node" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment