Fix Dockerfile for arm64 qemu crashes (#316)

Added build arguments for platform-specific builds and debug output.
This commit is contained in:
CaliBrain
2025-11-16 12:50:12 -05:00
committed by GitHub
parent a46d302ba8
commit 50e53a13b0
+10 -2
View File
@@ -1,5 +1,13 @@
# Frontend build stage
FROM node:20-alpine AS frontend-builder
ARG TARGETPLATFORM
ARG TARGETARCH
ARG BUILDPLATFORM
ARG BUILDARCH
# Frontend build stage.
FROM --platform=$BUILDPLATFORM node:20-alpine AS frontend-builder
# Helpful debug output to see what platforms BuildKit thinks it's using
RUN echo "BUILDPLATFORM=$BUILDPLATFORM BUILDARCH=$BUILDARCH TARGETPLATFORM=$TARGETPLATFORM TARGETARCH=$TARGETARCH"
WORKDIR /frontend