Skip to content

Commit

Permalink
refactor: add sharp package before running build
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenn92 committed Jan 8, 2024
1 parent b96936c commit 80f01da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ RUN yarn global add @nestjs/cli --network-timeout 99999999 && \
yarn config set python /usr/bin/python3 && \
yarn --force --non-interactive --frozen-lockfile --network-timeout 99999999

RUN \
case "${TARGETPLATFORM}" in ('linux/arm64' | 'linux/amd64') \
yarn add --save --network-timeout 99999999 sharp \
;; \
esac

RUN yarn run build:server

RUN yarn run build:ui

RUN yarn run docs-generate && \
rm -rf ./docs

RUN \
case "${TARGETPLATFORM}" in ('linux/arm64' | 'linux/amd64') \
yarn add --save --network-timeout 99999999 sharp \
;; \
esac

RUN yarn --production --non-interactive --ignore-scripts --prefer-offline --frozen-lockfile --network-timeout 99999999

FROM node:20-alpine3.19
Expand Down

0 comments on commit 80f01da

Please sign in to comment.