Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a configuration file #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fernandoacorreia
Copy link

If a .docker-npm file is present in the current directory, it will be imported.

This can be used to define these environment variables:

  • DOCKER_NPM_IMAGE_NAME: Base name of the Docker image. Default: mkenney/npm.
  • DOCKER_NPM_TAG: Docker image tag. Default specified in script code e.g. node-11-alpine.

Use cases:

  • DOCKER_NPM_TAG can be used to "pin" a project to a given node version.
  • DOCKER_NPM_IMAGE_NAME can be used to optionally decouple the scripts from the default mkenney/npm image, e.g. for experimenting with newer node versions.

Example:

❯ cat .docker-npm 
export DOCKER_NPM_IMAGE_NAME=fernando
export DOCKER_NPM_TAG=node-12-alpine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant