Increase memory for Docker prod build

This commit is contained in:
Felix Ableitner 2023-06-12 13:27:41 +02:00 committed by Nutomic
parent f7fa4c0940
commit 3594ce7197

View file

@ -51,7 +51,7 @@ COPY --from=docs /app/docs ./src/assets/docs
COPY --from=api /app/lemmy-js-client/docs ./src/assets/api COPY --from=api /app/lemmy-js-client/docs ./src/assets/api
RUN yarn RUN yarn
RUN yarn build:prod RUN NODE_OPTIONS="--max-old-space-size=8192" yarn build:prod
FROM node:14-alpine as runner FROM node:14-alpine as runner
COPY --from=builder /app/dist /app/dist COPY --from=builder /app/dist /app/dist