How can I install package from private repository using docker How can I install package from private repository using docker docker docker

How can I install package from private repository using docker


You should add git and openssh-client and other packages if you want to the node:alpine to let npm pull the repository

FROM node:alpineRUN apk add --update \  python \  python-dev \  py-pip \  build-base \  git \  openssh-client \&& pip install virtualenv \&& rm -rf /var/cache/apk/*COPY package.json package.jsonCOPY src srcCOPY .babelrc .babelrcRUN npm install  RUN npm run gitlab-buildRUN lsEXPOSE 8080CMD ["npm", "run", "docker-start"]