Skip to content

Commit

Permalink
skip install & use node-prune for arm64 image build (#1985)
Browse files Browse the repository at this point in the history
* skip install & use node-prune for aarch64 image build

* rerun ci

* empty commit to trigger build

Co-authored-by: chohmann <[email protected]>
  • Loading branch information
jsoizo and chohmann authored Feb 14, 2022
1 parent f9bdf7f commit 123cb83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 123cb83

Please sign in to comment.