Last active
February 27, 2023 20:11
-
-
Save jrichardsz/3c103f2ee92127b8eb661b241c2ca751 to your computer and use it in GitHub Desktop.
Dockerfile for nodejs webs, dockerreact, dockerangular, dockervue - devops template - nodejsdocker - devopstemplate
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 node:14 | |
COPY . /opt/ | |
WORKDIR /opt/ | |
RUN npm install | |
RUN npm run build | |
# remove tests here | |
ENV PORT 8080 | |
EXPOSE 8080 | |
ENTRYPOINT ["npm","run","start"] |
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 node:14 | |
COPY . /opt/ | |
WORKDIR /opt/ | |
RUN npm install | |
# moderns ssr needs : RUN npm run build | |
EXPOSE 8080 | |
ENV PORT 8080 | |
ENTRYPOINT ["npm","run","start"] |
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
https://github.com/npm/cli/issues/4896 | |
git config --system url."https://github".insteadOf "git://github" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment