Skip to content

Commit

Permalink
Workaround npm hang with node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
felddy committed Apr 29, 2024
1 parent b32818e commit 99a23b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ ARG FOUNDRY_PASSWORD
ARG FOUNDRY_RELEASE_URL
ARG FOUNDRY_USERNAME
ARG FOUNDRY_VERSION=12.320
ARG NODE_IMAGE_VERSION=18-alpine3.18
ARG NODE_IMAGE_VERSION_COMPILE=18-alpine3.19
ARG NODE_IMAGE_VERSION_RELEASE=20-alpine3.19
ARG VERSION

FROM node:${NODE_IMAGE_VERSION} as compile-typescript-stage
FROM node:${NODE_IMAGE_VERSION_COMPILE} as compile-typescript-stage

WORKDIR /root

Expand All @@ -19,7 +20,7 @@ COPY /src/*.ts src/
RUN tsc
RUN grep -l "#!" dist/*.js | xargs chmod a+x

FROM node:${NODE_IMAGE_VERSION} as optional-release-stage
FROM node:${NODE_IMAGE_VERSION_COMPILE} as optional-release-stage

ARG FOUNDRY_PASSWORD
ARG FOUNDRY_RELEASE_URL
Expand Down Expand Up @@ -49,7 +50,7 @@ RUN \
unzip -d dist ${ARCHIVE} 'resources/*'; \
fi

FROM node:${NODE_IMAGE_VERSION} as final-stage
FROM node:${NODE_IMAGE_VERSION_RELEASE} as final-stage

ARG FOUNDRY_UID=421
ARG FOUNDRY_VERSION
Expand Down

0 comments on commit 99a23b8

Please sign in to comment.