]> Untitled Git - lemmy-ui.git/blobdiff - Dockerfile
Updated the regex for isAuthPath to reduce false positive hits (#1806)
[lemmy-ui.git] / Dockerfile
index 3d6d6212d8dc4401373873cf3d9bb67cf5cfbecb..92b3f7e62de6c3576b18a45b24d5db4f25047774 100644 (file)
@@ -1,4 +1,4 @@
-FROM node:alpine as builder\r
+FROM node:20.2-alpine as builder\r
 RUN apk update && apk add curl yarn python3 build-base gcc wget git --no-cache\r
 RUN curl -sf https://gobinaries.com/tj/node-prune | sh\r
 \r
@@ -27,7 +27,7 @@ COPY .git .git
 RUN echo "export const VERSION = '$(git describe --tag)';" > "src/shared/version.ts"\r
 \r
 RUN yarn --production --prefer-offline\r
-RUN yarn build:prod\r
+RUN NODE_OPTIONS="--max-old-space-size=8192" yarn build:prod\r
 \r
 # Prune the image\r
 RUN node-prune /usr/src/app/node_modules\r