From 13f9922c53a798bfdb0e7732266606e2a154b78a Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Wed, 25 Jan 2023 19:58:44 +0530 Subject: [PATCH] =?UTF-8?q?chore(frontend):=20=F0=9F=94=A7=20support=20ARM?= =?UTF-8?q?=20and=20copy=20yarnrc=20in=20Dockerfile=20(#2119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Prashant Shahi Signed-off-by: Prashant Shahi Co-authored-by: Palash Gupta --- Makefile | 2 +- frontend/Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0847cc7dfe..d363e7039f 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 71188e71c9..145f205a9d 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