From 5d0ecbbd314b800a0b7d5e5273984f8f29c38cfe Mon Sep 17 00:00:00 2001 From: rubikscraft Date: Wed, 28 Dec 2022 10:27:36 +0100 Subject: [PATCH] Update docker file --- support/picsur-stage1.Dockerfile | 2 +- support/picsur-stage2.Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/support/picsur-stage1.Dockerfile b/support/picsur-stage1.Dockerfile index d12597c..d7414cd 100644 --- a/support/picsur-stage1.Dockerfile +++ b/support/picsur-stage1.Dockerfile @@ -1,6 +1,6 @@ # This dockerfile only builds the javascript part of the project, so tsc and angular compilation -FROM node:latest AS BUILDER_STAGE1 +FROM node:18 AS BUILDER_STAGE1 SHELL ["/bin/bash", "-c"] diff --git a/support/picsur-stage2.Dockerfile b/support/picsur-stage2.Dockerfile index d45f5d8..ea00a0c 100644 --- a/support/picsur-stage2.Dockerfile +++ b/support/picsur-stage2.Dockerfile @@ -3,7 +3,7 @@ # Always fetch amd64 image FROM ghcr.io/rubikscraft/picsur-alpha-stage1:latest AS BUILDER_STAGE1 -FROM node:alpine AS BUILDER_STAGE2 +FROM node:18-alpine AS BUILDER_STAGE2 RUN apk add python3 build-base @@ -12,7 +12,7 @@ COPY --from=BUILDER_STAGE1 /picsur ./ RUN yarn workspaces focus -A --production -FROM node:alpine +FROM node:18-alpine ENV PICSUR_PRODUCTION=true