build: Add build stage into Dockerfile(x86_64)
Created by: imjoey
Signed-off-by: imjoey majunjiev@gmail.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
Currently we need to rely on the local environment, such as nodejs/yarn
to build the docker image and it would cause the build phrase inconsistent and non-producible. This PR is going to leverage multi-stage builds to move the build stage into Dockerfile.
Note: This PR only add build stage support for the dockerfile of
x86_64
, while I would open another PR to make it forarm64
.