Skip to content

Commit

Permalink
Merge pull request #105 from BuckinghamAJ/dev
Browse files Browse the repository at this point in the history
Adding argument to Dockerfile for argument since NODE_ENV
  • Loading branch information
BuckinghamAJ authored Aug 14, 2023
2 parents fb3b7bd + a2f53d1 commit fc4743a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ RUN touch winston.log.json

RUN npm cache clean --force

# Get environment argument passed in
ARG environment
ARG default_environment=development

# Set NODE_ENV environment variable
ENV NODE_ENV=${environment:-$default_environment}

# Check environment and install dependencies
# Note: When the NODE_ENV environment variable is set to 'production' npm
# will not install modules listed in devDependencies
Expand Down

0 comments on commit fc4743a

Please sign in to comment.