Private
Public Access
1
0

Add .dockerignore files and increase Node memory limit

Prevents node_modules/dist from polluting Docker build context.
Sets NODE_OPTIONS max-old-space-size=4096 for Vite builds on
memory-constrained servers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-08 09:53:47 -05:00
parent 7ebff12b33
commit 79821e3e04
3 changed files with 19 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
**/node_modules
**/dist
**/bin
**/obj
.git
.gitignore
*.md
.vscode
.env
.claude
frontend
+7
View File
@@ -0,0 +1,7 @@
node_modules
dist
.git
.gitignore
*.md
.vscode
.env*
+1
View File
@@ -1,5 +1,6 @@
FROM node:22 AS build
WORKDIR /app
ENV NODE_OPTIONS=--max-old-space-size=4096
COPY package*.json ./
RUN npm ci
COPY . .