From 01d34ea7ab07be3672625e81c026d20935e630de Mon Sep 17 00:00:00 2001 From: ComasSky Date: Wed, 23 Feb 2022 08:16:59 +0000 Subject: [PATCH] Add SHA --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 04399932..fe6bfde1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ # # # # -FROM docker.io/library/node:17-alpine AS build_node_modules +FROM docker.io/library/node:17-alpine@sha256:0e83c810225bc29e614189acf3d6419e3c09881cefb9f7a170fdcfe3e15bbfd5 AS build_node_modules # Copy Web UI COPY src/ /app/ @@ -18,7 +18,7 @@ RUN npm ci --production # Copy build result to a new image. # This saves a lot of disk space. -FROM docker.io/library/node:17-alpine +FROM docker.io/library/node:17-alpine@sha256:0e83c810225bc29e614189acf3d6419e3c09881cefb9f7a170fdcfe3e15bbfd5 COPY --from=build_node_modules /app /app # Move node_modules one directory up, so during development