🐳 Fix Docker arm/v7 support

This commit is contained in:
Alicia Sykes
2024-03-04 13:00:17 +00:00
parent 2caec6a8a9
commit 0d79fcf8a5
3 changed files with 25 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
FROM node:20.11.1-alpine AS BUILD_IMAGE
FROM node:18.19.1-alpine AS BUILD_IMAGE
# Set the platform to build image for
ARG TARGETPLATFORM
@@ -22,10 +22,10 @@ RUN yarn install --ignore-engines --immutable --no-cache --network-timeout 30000
COPY . ./
# Build initial app for production
RUN NODE_OPTIONS=--openssl-legacy-provider yarn build --mode production
RUN yarn build --mode production
# Production stage
FROM node:20.11.1-alpine
FROM node:20.11.1-alpine3.19
# Define some ENV Vars
ENV PORT=80 \