From c72d7b785acd3bba45d48928a6a098840739b165 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Mon, 18 Nov 2024 13:48:45 -0800 Subject: [PATCH] Dockerfile: Fix Nodejs to v20-alpine --- .github/workflows/docker-release.yml | 6 +++++- Dockerfile | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index cc16cf909..e3220387a 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -11,7 +11,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout repository @@ -41,6 +41,10 @@ jobs: exit 1 fi echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "GITHUB REF TYPE: ${{ github.ref_type }}" + echo "GITHUB REF NAME: ${{ github.ref_name }}" + echo "EVENT INPUT VERSION: ${{ github.event.inputs.version }}" + echo "ENV VERSION: ${{ env.VERSION }}" - name: Build and push Docker image uses: docker/build-push-action@v5 diff --git a/Dockerfile b/Dockerfile index 449e253ca..3763c338d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -ARG BASE_DISTRO="node:alpine" +ARG BASE_DISTRO="node:20-alpine" -FROM --platform=${BUILDPLATFORM} ${BASE_DISTRO} as builder +FROM --platform=${BUILDPLATFORM} ${BASE_DISTRO} AS builder WORKDIR /RTL @@ -20,7 +20,7 @@ RUN npm run buildbackend # Remove non production necessary modules RUN npm prune --omit=dev --legacy-peer-deps -FROM --platform=${TARGETPLATFORM} ${BASE_DISTRO} as runner +FROM --platform=${TARGETPLATFORM} ${BASE_DISTRO} AS runner RUN apk add --no-cache tini