summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorShyam Sunder <sgsunder1@gmail.com>2021-09-19 12:03:32 -0400
committerShyam Sunder <sgsunder1@gmail.com>2021-09-19 12:03:32 -0400
commitc3b81371d83c3daf31aeeb821d4865e232cd6b0d (patch)
tree597eef0669ebbf4db08187a7435818504f1d3cfd /client
parentc64983002ed727cb9692e5959ab3e9ed17564d68 (diff)
client+server/docker: fix ARM build platform issue
Diffstat (limited to 'client')
-rw-r--r--client/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/Dockerfile b/client/Dockerfile
index 2aeaf3b..3ab0016 100644
--- a/client/Dockerfile
+++ b/client/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:lts as builder
+FROM --platform=$BUILDPLATFORM node:lts as builder
WORKDIR /opt/app
COPY package.json package-lock.json ./
@@ -12,7 +12,7 @@ ARG CLIENT_BUILD_ARGS=""
RUN BASE_URL="__BASEURL__" node build.js --gzip ${CLIENT_BUILD_ARGS}
-FROM scratch as approot
+FROM --platform=$BUILDPLATFORM scratch as approot
COPY docker-start.sh /