Update Dockerfile with platform

This commit is contained in:
Rahul Jain 2024-09-24 14:23:04 +00:00 committed by GitHub
parent 4e4756d1c4
commit d45ac8d722
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,11 @@
FROM node:18-alpine AS build
ARG PLATFORM
FROM --platform=${PLATFORM} node:18-alpine AS build
COPY . .
RUN npm ci
RUN npm run build
FROM nginx:1.25-alpine3.18 AS cyberchef
FROM --platform=${PLATFORM} nginx:1.25-alpine3.18 AS cyberchef
COPY --from=build ./build/prod /usr/share/nginx/html/