Last active
February 12, 2022 08:05
-
-
Save romant/2e31a44501208245db9f to your computer and use it in GitHub Desktop.
Photon OS Base Image for Node.js Deployment
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 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