Update Dockerfile with platform
This commit is contained in:
parent
4e4756d1c4
commit
d45ac8d722
@ -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/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user