Merge pull request #2731 from atoff/feat/npmrc

feat: Mount .npmrc into workspace home
This commit is contained in:
Shao Yu-Lung (Allen) 2020-12-22 16:01:25 +08:00 committed by GitHub
commit 123d818777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -1907,6 +1907,7 @@ To install NVM and NodeJS in the Workspace container
3 - Re-build the container `docker-compose build workspace`
A `.npmrc` file is included in the `workspace` folder if you need to utilise this globally. This is copied automatically into the root and laradock user's folders on build.
<br>

0
workspace/.npmrc Normal file
View File

View File

@ -770,6 +770,10 @@ RUN if [ ${NPM_REGISTRY} ]; then \
. ~/.bashrc && npm config set registry ${NPM_REGISTRY} \
;fi
# Mount .npmrc into home folder
COPY ./.npmrc /root/.npmrc
COPY ./.npmrc /home/laradock/.npmrc
###########################################################################
# PNPM: