Skip to content

Commit

Permalink
Set current arch
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneTorap committed Mar 17, 2023
1 parent 6f30b97 commit ecf4072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
######################################################################
ARG PY_VER=3.8.16-slim

# if BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
# if BUILDPLATFORM is null, set it to current arch (or leave as is otherwise).
ARG BUILDPLATFORM=${BUILDPLATFORM:-$(echo "$arch" | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)}
FROM --platform=${BUILDPLATFORM} node:16-slim AS superset-node

ARG NPM_BUILD_CMD="build"
Expand Down

0 comments on commit ecf4072

Please sign in to comment.