Skip to content

Commit

Permalink
Merge pull request #188 from BuckinghamAJ/feature/node_20_upgrade
Browse files Browse the repository at this point in the history
Upgrading to Node 20 (Ticket 109)
  • Loading branch information
BuckinghamAJ authored Oct 17, 2024
2 parents 916d6aa + 7757843 commit a5b5719
Show file tree
Hide file tree
Showing 5 changed files with 7,352 additions and 27,456 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Node Building Image
FROM node:16
FROM node:20

# create app directory
WORKDIR /opt/api
Expand All @@ -14,7 +14,7 @@ COPY .snyk ./

RUN touch winston.log.json

RUN npm cache clean --force
RUN yarn cache clean

# Get environment argument passed in
ARG environment
Expand All @@ -26,15 +26,15 @@ ENV NODE_ENV=${environment:-$default_environment}
# Set SNYK TOKEN environment variable
ARG SNYK_TOKEN
ENV SNYK_TOKEN ${SNYK_TOKEN}
RUN npm install snyk@latest -g
RUN yarn global add snyk@latest
RUN snyk auth ${SNYK_TOKEN}


# Check environment and install dependencies
# Note: When the NODE_ENV environment variable is set to 'production' npm
# will not install modules listed in devDependencies
# Reference: https://docs.npmjs.com/cli/v8/commands/npm-install
RUN npm install
RUN yarn install

# Bundle app source
COPY server/ ./server
Expand Down
Loading

0 comments on commit a5b5719

Please sign in to comment.