From b3d028fe625f3beaebf38c1603fea146fa1bb84f Mon Sep 17 00:00:00 2001 From: Andy Chase Date: Wed, 23 Oct 2024 20:45:17 +0000 Subject: [PATCH] Try specifying node and upgrading action --- .github/workflows/build.yml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7df48b9f63..4d6f6c8aef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: # Build and push the Docker image with two tags: one using the Git tag or SHA, and another using 'main'. - name: Build and push Docker image - uses: docker/build-push-action@v6.7.0 + uses: docker/build-push-action@v6.9.0 with: context: . push: true diff --git a/Dockerfile b/Dockerfile index 05d6b9b21c..0bf2cd121f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ---- Base Node ---- -FROM node:alpine AS base +FROM node:23-alpine3.19 AS base WORKDIR /app COPY package*.json ./ COPY *env ./ @@ -14,7 +14,7 @@ COPY . . RUN npm run build # ---- Production ---- -FROM node:alpine AS production +FROM node:23-alpine3.19 AS production WORKDIR /app COPY --from=dependencies /app/node_modules ./node_modules COPY --from=build /app/.next ./.next