Skip to content

Instantly share code, notes, and snippets.

@gWOLF3
Last active June 16, 2020 06:57
Show Gist options
  • Save gWOLF3/9d15fe93cb8e226f26f55d11c3fb3caf to your computer and use it in GitHub Desktop.
Save gWOLF3/9d15fe93cb8e226f26f55d11c3fb3caf to your computer and use it in GitHub Desktop.
instead of copying in .npmrc template from repo, just create it in the Dockerfile to simplify things...
///
ARG NPM_TOKEN
RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc && \
npm i && \
rm -f .npmrc
///
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment