mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 04:22:07 +00:00
fix: increase build memory
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user