Update docker file

This commit is contained in:
rubikscraft 2022-12-28 10:27:36 +01:00
parent 40bd2349a3
commit 5d0ecbbd31
No known key found for this signature in database
GPG Key ID: 1463EBE9200A5CD4
2 changed files with 3 additions and 3 deletions

View File

@ -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"]

View File

@ -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