Merge pull request #2731 from atoff/feat/npmrc
feat: Mount .npmrc into workspace home
This commit is contained in:
commit
123d818777
|
@ -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>
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue