Spaces:
Sleeping
Sleeping
Commit
·
d371cc1
1
Parent(s):
90ad400
Fix: increase memory for vite build
Browse filesCo-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM node:20-slim
|
|
| 3 |
# Set noninteractive installation
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
-
# Build timestamp to force cache invalidation: 2026-01-12T21:
|
| 7 |
|
| 8 |
# Install build dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
|
@@ -41,8 +41,8 @@ RUN npm install --omit=dev && \
|
|
| 41 |
cd ../backend && npm install && \
|
| 42 |
cd ..
|
| 43 |
|
| 44 |
-
# Build frontend with vite
|
| 45 |
-
RUN cd app && npm run build:prod
|
| 46 |
|
| 47 |
# Build backend with esbuild
|
| 48 |
RUN mkdir -p backend/dist/backend/src && \
|
|
|
|
| 3 |
# Set noninteractive installation
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
+
# Build timestamp to force cache invalidation: 2026-01-12T21:45
|
| 7 |
|
| 8 |
# Install build dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 41 |
cd ../backend && npm install && \
|
| 42 |
cd ..
|
| 43 |
|
| 44 |
+
# Build frontend with vite (increase memory limit)
|
| 45 |
+
RUN cd app && NODE_OPTIONS="--max-old-space-size=4096" npm run build:prod
|
| 46 |
|
| 47 |
# Build backend with esbuild
|
| 48 |
RUN mkdir -p backend/dist/backend/src && \
|