Skip to content

Commit e03daa7

Browse files
chore(frontend): 🔧 support ARM and copy yarnrc in Dockerfile (#2119)
Signed-off-by: Prashant Shahi <[email protected]> Signed-off-by: Prashant Shahi <[email protected]> Co-authored-by: Palash Gupta <[email protected]> (cherry picked from commit 13f9922) Signed-off-by: Prashant Shahi <[email protected]>
1 parent c48f727 commit e03daa7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ build-push-frontend:
5454
@echo "--> Building and pushing frontend docker image"
5555
@echo "------------------"
5656
@cd $(FRONTEND_DIRECTORY) && \
57-
docker buildx build --file Dockerfile --progress plane --push --platform linux/amd64 \
57+
docker buildx build --file Dockerfile --progress plane --push --platform linux/arm64,linux/amd64 \
5858
--tag $(REPONAME)/$(FRONTEND_DOCKER_IMAGE):$(DOCKER_TAG) .
5959

6060
# Steps to build and push docker image of query service

frontend/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ ARG TARGETARCH
99

1010
WORKDIR /frontend
1111

12-
# Copy the package.json to install dependencies
12+
# Copy the package.json and .yarnrc files prior to install dependencies
1313
COPY package.json ./
14+
COPY .yarnrc ./
1415

1516
# Install the dependencies and make the folder
1617
RUN CI=1 yarn install

0 commit comments

Comments
 (0)