From 04a0a1cbf71dbb01e8a763bfb34a523520b0c985 Mon Sep 17 00:00:00 2001 From: Rahul Jain Date: Tue, 24 Sep 2024 13:32:31 +0000 Subject: [PATCH] Update Dockerfile with platform --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be4c8bad..6c3fcd70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM node:18-alpine AS build +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/