There was an error while loading. Please reload this page.
1 parent b7296ff commit 6e97200Copy full SHA for 6e97200
1 file changed
Dockerfile
@@ -14,10 +14,15 @@ COPY go.mod go.sum ./
14
# Copy source code
15
COPY . .
16
17
-# Build frontend - clean install to avoid architecture issues
+# Build frontend - clean install with explicit platform targeting
18
WORKDIR /build/frontend
19
+ARG TARGETPLATFORM
20
+ARG TARGETARCH
21
RUN rm -rf node_modules package-lock.json && \
- npm install --force && \
22
+ npm config set target_arch ${TARGETARCH:-x64} && \
23
+ npm config set target_platform linux && \
24
+ npm install --force --ignore-scripts && \
25
+ npm rebuild && \
26
npm run build
27
28
# Build backend with static linking (native architecture)
0 commit comments