Skip to content

Commit 7f6a8ae

Browse files
committed
chore: add BASE_IMAGE build arg to Dockerfile
Ticket: WP-6774
1 parent fc82984 commit 7f6a8ae

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/release-to-ghcr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ jobs:
153153
uses: docker/build-push-action@v6
154154
with:
155155
context: .
156+
platforms: linux/amd64
156157
push: true
157158
tags: |
158159
ghcr.io/bitgo/advanced-wallets:${{ needs.get-context.outputs.new-version }}

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# syntax=docker/dockerfile:1.4
22

33
# Build stage
4-
# Using node:22-alpine with OpenSSL 3.3.2+ to address CVE-2024-6119
5-
# Pinned to specific SHA256 digest for supply chain security and deterministic builds
6-
# To update: podman pull node:22-alpine && podman inspect node:22-alpine --format '{{index .RepoDigests 0}}'
7-
# Last updated: 2025-10-24
8-
FROM --platform=$BUILDPLATFORM node:22-alpine@sha256:d31216005bd330aa47f848822d4f269f6c79f0905b60cca1d87577149519daa6 AS builder
4+
# Using node:22.1.0-alpine with OpenSSL 3.3.2+ to address CVE-2024-6119
5+
FROM node:22.1.0-alpine AS builder
96

107
# Set build-time variables for reproducibility
118
ARG NODE_ENV=development
@@ -55,9 +52,8 @@ COPY . .
5552
RUN npm run build
5653

5754
# Production stage
58-
# Using node:22-alpine with OpenSSL 3.3.2+ to address CVE-2024-6119
59-
# Pinned to specific SHA256 digest for supply chain security and deterministic builds
60-
FROM --platform=$TARGETPLATFORM node:22-alpine@sha256:d31216005bd330aa47f848822d4f269f6c79f0905b60cca1d87577149519daa6 AS production
55+
# Using node:22.1.0-alpine with OpenSSL 3.3.2+ to address CVE-2024-6119
56+
FROM node:22.1.0-alpine AS production
6157

6258
# Declare build arguments in production stage
6359
ARG PORT=3081

0 commit comments

Comments
 (0)