Skip to content

Commit 4a79c38

Browse files
committed
fix: add platform flags to Dockerfile for multi-arch builds
Ticket: WP-00000
1 parent 68b5c0b commit 4a79c38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Pinned to specific SHA256 digest for supply chain security and deterministic builds
66
# To update: podman pull node:22-alpine && podman inspect node:22-alpine --format '{{index .RepoDigests 0}}'
77
# Last updated: 2025-10-24
8-
FROM node:22-alpine@sha256:d31216005bd330aa47f848822d4f269f6c79f0905b60cca1d87577149519daa6 AS builder
8+
FROM --platform=$BUILDPLATFORM node:22-alpine@sha256:d31216005bd330aa47f848822d4f269f6c79f0905b60cca1d87577149519daa6 AS builder
99

1010
# Set build-time variables for reproducibility
1111
ARG NODE_ENV=development
@@ -57,7 +57,7 @@ RUN npm run build
5757
# Production stage
5858
# Using node:22-alpine with OpenSSL 3.3.2+ to address CVE-2024-6119
5959
# Pinned to specific SHA256 digest for supply chain security and deterministic builds
60-
FROM node:22-alpine@sha256:d31216005bd330aa47f848822d4f269f6c79f0905b60cca1d87577149519daa6 AS production
60+
FROM --platform=$TARGETPLATFORM node:22-alpine@sha256:d31216005bd330aa47f848822d4f269f6c79f0905b60cca1d87577149519daa6 AS production
6161

6262
# Declare build arguments in production stage
6363
ARG PORT=3081

0 commit comments

Comments
 (0)