Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: Fix Nodejs to v20-alpine #1470

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
Loading