Skip to content

Commit

Permalink
Update Dockerfile with platform
Browse files Browse the repository at this point in the history
  • Loading branch information
xRahul authored Sep 24, 2024
1 parent 4e4756d commit d45ac8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit d45ac8d

Please sign in to comment.