Skip to content

Commit

Permalink
Merge pull request #739 from jorenn92/fix/sharp-error-in-production
Browse files Browse the repository at this point in the history
refactor: add sharp package before running build
  • Loading branch information
jorenn92 authored Jan 8, 2024
2 parents b96936c + 80f01da commit 6cd322f
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 6cd322f

Please sign in to comment.