From 123cb83e4411703ef8c1e03e371ec8185b0760c1 Mon Sep 17 00:00:00 2001 From: jsoizo Date: Tue, 15 Feb 2022 06:43:53 +0900 Subject: [PATCH] skip install & use node-prune for arm64 image build (#1985) * skip install & use node-prune for aarch64 image build * rerun ci * empty commit to trigger build Co-authored-by: chohmann --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c3ace0a24..aaafb8153 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,8 +30,8 @@ RUN mkdir -p /usr/src/prism/packages/cli/node_modules ENV NODE_ENV production RUN yarn --production -RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -RUN ./bin/node-prune +RUN if [ $(uname -m) != "aarch64" ]; then curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash; fi +RUN if [ $(uname -m) != "aarch64" ]; then ./bin/node-prune; fi ############################################################### FROM node:12-alpine