fix: increase build memory

This commit is contained in:
Torsten Dittmann
2024-02-01 12:41:19 +01:00
parent 203b57ed43
commit 5dd81e5a20
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build Website
env:
NODE_OPTIONS: '--max_old_space_size=4096'
NODE_OPTIONS: '--max_old_space_size=8192'
PUBLIC_APPWRITE_PROJECT_INIT_ID: ${{ secrets.PUBLIC_APPWRITE_PROJECT_INIT_ID }}
PUBLIC_APPWRITE_PROJECT_ID: ${{ secrets.PUBLIC_APPWRITE_PROJECT_ID }}
PUBLIC_APPWRITE_DB_MAIN_ID: ${{ secrets.PUBLIC_APPWRITE_DB_MAIN_ID }}

View File

@@ -23,7 +23,7 @@ COPY . .
RUN corepack enable
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
RUN NODE_OPTIONS=--max_old_space_size=4096 pnpm run build
RUN NODE_OPTIONS=--max_old_space_size=8192 pnpm run build
# Node alpine image to serve the generated static files
FROM node:20-alpine AS serve