-
-
Save funkyfisch/46e515119b72bfd20eab7666dfca26d8 to your computer and use it in GitHub Desktop.
Dockerfile used to build the image
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: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