Skip to content

Instantly share code, notes, and snippets.

@funkyfisch
Last active November 19, 2018 10:02
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 funkyfisch/46e515119b72bfd20eab7666dfca26d8 to your computer and use it in GitHub Desktop.
Save funkyfisch/46e515119b72bfd20eab7666dfca26d8 to your computer and use it in GitHub Desktop.
Dockerfile used to build the image
FROM node:10
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin
RUN npm config set strict-ssl false -g
RUN npm config set registry http://registry.npmjs.org/ -g
RUN npm config set maxsockets 5 -g
RUN npm config set fetch-retry-mintimeout 2000 -g
RUN npm config set fetch-retry-maxtimeout 8000 -g
RUN npm install nodemon -g
USER node
RUN mkdir /home/node/app
WORKDIR /home/node/app
# path that contains the entire project, including the package.json file.
ADD webapp-backend/ .
RUN npm config list
RUN npm install --verbosed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment