You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by cr...@apache.org on 2023/03/17 14:24:28 UTC
[superset] branch master updated: fix(docker): multi-architecture image build (#23409)
This is an automated email from the ASF dual-hosted git repository.
craigrueda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new d4657f6198 fix(docker): multi-architecture image build (#23409)
d4657f6198 is described below
commit d4657f6198011a01a8a7918f195ac2403f58e2d0
Author: EugeneTorap <ev...@gmail.com>
AuthorDate: Fri Mar 17 17:24:19 2023 +0300
fix(docker): multi-architecture image build (#23409)
---
Dockerfile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Dockerfile b/Dockerfile
index f17675e117..9089fc8f28 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,7 +19,10 @@
# Node stage to deal with static asset construction
######################################################################
ARG PY_VER=3.8.16-slim
-FROM node:16-slim AS superset-node
+
+# if BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
+ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
+FROM --platform=${BUILDPLATFORM} node:16-slim AS superset-node
ARG NPM_BUILD_CMD="build"
ENV BUILD_CMD=${NPM_BUILD_CMD}