Hi , On v0.8.17 tag i am trying to run docker bui...
# all-things-deployment
s
Hi , On v0.8.17 tag i am trying to run docker build on frontend module. But its breaking with below error .
Copy code
Step 5/26: FROM --platform=$BUILDPLATFORM node:16.13.0alpline3.14 AS Prod-build
failed to parse platform : "" is invalid component of "":
Please suggest what is this $BUILDPLATFORM ARG is and should we add it in the Dockerfile ?
plus1 3
Solution - I removed the usage of $BUILDPLATFORM from Dockerfile and tried to build docker image . That worked for me. Thanks 👍
m
Solution #2 - Add the BuildKit explicitly since older docker versions need it:
DOCKER_BUILDKIT=1 docker build .