diff --git a/Makefile b/Makefile index 0847cc7dfecc..d363e7039fcd 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ build-push-frontend: @echo "--> Building and pushing frontend docker image" @echo "------------------" @cd $(FRONTEND_DIRECTORY) && \ - docker buildx build --file Dockerfile --progress plane --push --platform linux/amd64 \ + docker buildx build --file Dockerfile --progress plane --push --platform linux/arm64,linux/amd64 \ --tag $(REPONAME)/$(FRONTEND_DOCKER_IMAGE):$(DOCKER_TAG) . # Steps to build and push docker image of query service diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 71188e71c900..145f205a9dbf 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -9,8 +9,9 @@ ARG TARGETARCH WORKDIR /frontend -# Copy the package.json to install dependencies +# Copy the package.json and .yarnrc files prior to install dependencies COPY package.json ./ +COPY .yarnrc ./ # Install the dependencies and make the folder RUN CI=1 yarn install