From 32ac32c1a5740021abf2e51563393ddb1553df56 Mon Sep 17 00:00:00 2001 From: Andy Chase Date: Wed, 23 Oct 2024 21:28:26 +0000 Subject: [PATCH] Set working node version --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05d6b9b21c..14c8424cb1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ---- Base Node ---- -FROM node:alpine AS base +FROM node:alpine@sha256:c9bb43423a6229aeddf3d16ae6aaa0ff71a0b2951ce18ec8fedb6f5d766cf286 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:alpine@sha256:c9bb43423a6229aeddf3d16ae6aaa0ff71a0b2951ce18ec8fedb6f5d766cf286 AS production WORKDIR /app COPY --from=dependencies /app/node_modules ./node_modules COPY --from=build /app/.next ./.next