From 99a23b8cfe3736e198bace0ea8ec2463a12ede98 Mon Sep 17 00:00:00 2001 From: Felddy Date: Mon, 29 Apr 2024 12:37:55 -0400 Subject: [PATCH] Workaround npm hang with node v20 See: https://github.com/felddy/npm-hang-test/issues/2 --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 765f80a2a..a9222f6c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 @@ -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