chore(frontend): 🔧 support ARM and copy yarnrc in Dockerfile (#2119)

Signed-off-by: Prashant Shahi <prashant@signoz.io>

Signed-off-by: Prashant Shahi <prashant@signoz.io>
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
Prashant Shahi 2023-01-25 19:58:44 +05:30 committed by GitHub
parent a654baaa5b
commit 13f9922c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -54,7 +54,7 @@ build-push-frontend:
@echo "--> Building and pushing frontend docker image" @echo "--> Building and pushing frontend docker image"
@echo "------------------" @echo "------------------"
@cd $(FRONTEND_DIRECTORY) && \ @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) . --tag $(REPONAME)/$(FRONTEND_DOCKER_IMAGE):$(DOCKER_TAG) .
# Steps to build and push docker image of query service # Steps to build and push docker image of query service

View File

@ -9,8 +9,9 @@ ARG TARGETARCH
WORKDIR /frontend WORKDIR /frontend
# Copy the package.json to install dependencies # Copy the package.json and .yarnrc files prior to install dependencies
COPY package.json ./ COPY package.json ./
COPY .yarnrc ./
# Install the dependencies and make the folder # Install the dependencies and make the folder
RUN CI=1 yarn install RUN CI=1 yarn install