Skip to content

Commit

Permalink
Check if BUILDPLATFORM empty then set 'amd64'
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneTorap committed Mar 17, 2023
1 parent 198adcf commit 6f30b97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
# Node stage to deal with static asset construction
######################################################################
ARG PY_VER=3.8.16-slim
FROM --platform=$BUILDPLATFORM 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}
Expand Down

0 comments on commit 6f30b97

Please sign in to comment.