use current platform to build frontend assets

This commit is contained in:
MaysWind
2024-03-25 00:14:44 +08:00
parent 1e047aed80
commit 185758b638
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ RUN apk add git gcc g++ libc-dev
RUN ./build.sh backend
# Build frontend files
FROM node:18.19.1-alpine3.19 AS fe-builder
FROM --platform=$BUILDPLATFORM node:18.19.1-alpine3.19 AS fe-builder
ARG RELEASE_BUILD
ENV RELEASE_BUILD=$RELEASE_BUILD
WORKDIR /go/src/github.com/mayswind/ezbookkeeping