commit 04fa313faa4bc5e98603ce4eb2fe833d28d8ab37
parent 628a687c470f61fc15d1c05c752da151e30483c6
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Fri, 11 Feb 2022 13:32:56 +0100
Update node docker image
Diffstat:
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/Dockerfile b/Dockerfile
@@ -1,6 +1,6 @@
# Install dependencies only when needed
# Use node:17-slim
-FROM node@sha256:7c6fb786d7a9f38f5c0f0fa4845615c91441ab7406b13c808357b3b53e599bb2 AS deps
+FROM node@sha256:5e1c50b7686bcaf01b800966bf52d83a2530ea521290bba6eb0fd4eae3025055 AS deps
# for some reason the $PATH get lost inside kaniko, if we re-set it by hand it seems to work.
ENV PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
WORKDIR /app
@@ -9,7 +9,7 @@ RUN npm ci
# Rebuild the source code only when needed
# Use node:17-slim
-FROM node@sha256:7c6fb786d7a9f38f5c0f0fa4845615c91441ab7406b13c808357b3b53e599bb2 AS builder
+FROM node@sha256:5e1c50b7686bcaf01b800966bf52d83a2530ea521290bba6eb0fd4eae3025055 AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
@@ -19,7 +19,7 @@ RUN npm run build && npm install --only=production --ignore-scripts --prefer-off
# Production image, copy all the files and run next
# Use node:17-slim
-FROM node@sha256:7c6fb786d7a9f38f5c0f0fa4845615c91441ab7406b13c808357b3b53e599bb2 AS runner
+FROM node@sha256:5e1c50b7686bcaf01b800966bf52d83a2530ea521290bba6eb0fd4eae3025055 AS runner
WORKDIR /app
ENV NODE_ENV production
@@ -46,4 +46,4 @@ ENV PORT 3000
# Uncomment the following line in case you want to disable telemetry.
ENV NEXT_TELEMETRY_DISABLED 1
-CMD ["node_modules/.bin/next", "start"]
-\ No newline at end of file
+CMD ["node_modules/.bin/next", "start"]