Update Dockerfile with platform

This commit is contained in:
Rahul Jain 2024-09-24 13:32:31 +00:00 committed by GitHub
parent 6d1b1cc163
commit 04a0a1cbf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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