X-Git-Url: http://these/git/?a=blobdiff_plain;f=Dockerfile;h=92b3f7e62de6c3576b18a45b24d5db4f25047774;hb=8b478e971244321048818c95df00198cb445dba9;hp=3d6d6212d8dc4401373873cf3d9bb67cf5cfbecb;hpb=05aa483d899f83b231259fd0072c243c6567b922;p=lemmy-ui.git diff --git a/Dockerfile b/Dockerfile index 3d6d621..92b3f7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:alpine as builder +FROM node:20.2-alpine as builder RUN apk update && apk add curl yarn python3 build-base gcc wget git --no-cache RUN curl -sf https://gobinaries.com/tj/node-prune | sh @@ -27,7 +27,7 @@ COPY .git .git RUN echo "export const VERSION = '$(git describe --tag)';" > "src/shared/version.ts" RUN yarn --production --prefer-offline -RUN yarn build:prod +RUN NODE_OPTIONS="--max-old-space-size=8192" yarn build:prod # Prune the image RUN node-prune /usr/src/app/node_modules