Skip to content

Commit 6e97200

Browse files
Stefan ErnstStefan Ernst
authored andcommitted
Another fix for the dockerbuild, this time trying to fix the npm deps for arm
1 parent b7296ff commit 6e97200

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ COPY go.mod go.sum ./
1414
# Copy source code
1515
COPY . .
1616

17-
# Build frontend - clean install to avoid architecture issues
17+
# Build frontend - clean install with explicit platform targeting
1818
WORKDIR /build/frontend
19+
ARG TARGETPLATFORM
20+
ARG TARGETARCH
1921
RUN rm -rf node_modules package-lock.json && \
20-
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 && \
2126
npm run build
2227

2328
# Build backend with static linking (native architecture)

0 commit comments

Comments
 (0)