pwmckenna / til

Today I Learned
http://pwmckenna.net
9 stars 8 forks source link

Inject npm config into `docker run` command #23

Open pwmckenna opened 7 years ago

pwmckenna commented 7 years ago
docker run \
    --rm \
    `(for line in \`cat ~/.npmrc\`; do echo -n "-e npm_config_$line "; done)` \
    ...

Reference: http://stackabuse.com/the-ultimate-guide-to-configuring-npm/