From d45ac8d722b5da881e3af5b408ea2875a8a43ed5 Mon Sep 17 00:00:00 2001 From: Rahul Jain Date: Tue, 24 Sep 2024 14:23:04 +0000 Subject: [PATCH] Update Dockerfile with platform --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be4c8bad..506d1a8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/