Bot commited on
Commit
3d9dc77
·
1 Parent(s): 05c5ed5

Fix build OOM and DB error

Browse files
Files changed (2) hide show
  1. README.md +1 -0
  2. docker/Dockerfile +7 -0
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: indigo
6
  sdk: docker
7
  app_port: 3000
8
  hardware: t4-small
 
9
  ---
10
 
11
  **Keinsaas Navigator** - A better open-source AI chatbot for individuals and teams.
 
6
  sdk: docker
7
  app_port: 3000
8
  hardware: t4-small
9
+ dockerfile: docker/Dockerfile
10
  ---
11
 
12
  **Keinsaas Navigator** - A better open-source AI chatbot for individuals and teams.
docker/Dockerfile CHANGED
@@ -13,6 +13,13 @@ RUN pnpm install --frozen-lockfile
13
  # https://github.com/vercel/next.js/discussions/65511
14
  ENV NEXT_STANDALONE_OUTPUT="true"
15
 
 
 
 
 
 
 
 
16
  RUN pnpm build
17
 
18
  FROM node:23-alpine AS runner
 
13
  # https://github.com/vercel/next.js/discussions/65511
14
  ENV NEXT_STANDALONE_OUTPUT="true"
15
 
16
+ # Add dummy secrets for build time static generation to avoid errors
17
+ ENV POSTGRES_URL="postgres://postgres:postgres@localhost:5432/postgres"
18
+ ENV BETTER_AUTH_SECRET="dummy_secret_for_build_step_only_123456789"
19
+ ENV SKIP_ENV_VALIDATION="true"
20
+ ENV NEXT_MEMORY_LIMIT="4096"
21
+ ENV NODE_OPTIONS="--max-old-space-size=4096"
22
+
23
  RUN pnpm build
24
 
25
  FROM node:23-alpine AS runner