Skip to content

Instantly share code, notes, and snippets.

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 jrichardsz/3c103f2ee92127b8eb661b241c2ca751 to your computer and use it in GitHub Desktop.
Save jrichardsz/3c103f2ee92127b8eb661b241c2ca751 to your computer and use it in GitHub Desktop.
Dockerfile for nodejs webs, dockerreact, dockerangular, dockervue - devops template - nodejsdocker - devopstemplate
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"]
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"]
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