Skip to content

Commit

Permalink
feat(node): set npm cache folder
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 19, 2024
1 parent 6a89394 commit b3086ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions images/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ WORKDIR /app

RUN NODE_MAJOR_VERSION=$(echo "$NODE_VERSION" | cut -d. -f1) && \
YARN_MAJOR_VERSION=$(echo "$YARN_VERSION" | cut -d. -f1) && \
npm config set cache /tmp/.cache/npm && \
# if node version is 18 and up, use corepack
if [ "$NODE_MAJOR_VERSION" -lt 18 ]; then \
if [ "$YARN_MAJOR_VERSION" -gt 1 ]; then \
Expand Down

0 comments on commit b3086ee

Please sign in to comment.