From e234ab4fd6aef62ee2d53abc67465bbf27368832 Mon Sep 17 00:00:00 2001 From: paring Date: Tue, 2 Jan 2024 14:31:39 +0900 Subject: [PATCH] fix: node version in container --- .github/workflows/deploy-staging.yml | 1 - Dockerfile | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index ae97d9d..d45cf73 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -20,7 +20,6 @@ jobs: id: buildx with: platforms: linux/amd64,linux/arm64 - - name: Login to container registry uses: docker/login-action@v2 with: diff --git a/Dockerfile b/Dockerfile index 846087e..772171c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM node:18-alpine AS builder +FROM --platform=$BUILDPLATFORM node:20-alpine AS builder RUN mkdir -p /app @@ -41,7 +41,7 @@ RUN cat package.json | jq 'del(.devDependencies) | del(.resolutions) | del(.scri RUN pnpm pack && mv adofai-gg-*.tgz package.tgz -FROM node:18-alpine AS runner +FROM node:20-alpine AS runner COPY --from=builder /app/package.tgz .