k-l-lambda Claude commited on
Commit
d1748ef
·
1 Parent(s): 2488b95

Use full node:20 image and add verbose npm install

Browse files

- Switch from node:20-slim to node:20 for better dependency support
- Add verbose logging to app npm install to diagnose failures

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
- FROM node:20-slim
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
- # Build timestamp: 2026-01-12T23:00
6
 
7
  RUN apt-get update && apt-get install -y curl git && rm -rf /var/lib/apt/lists/*
8
 
@@ -21,9 +21,9 @@ COPY trigo-web/backend/package-lock.json ./backend/package-lock.json
21
  # Install build tools
22
  RUN npm install -g tsx jison typescript esbuild
23
 
24
- # Install deps
25
  RUN npm install --omit=dev
26
- RUN cd app && npm install
27
  RUN cd backend && npm install
28
 
29
  # Copy source files
 
1
+ FROM node:20
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ # Build timestamp: 2026-01-12T23:10
6
 
7
  RUN apt-get update && apt-get install -y curl git && rm -rf /var/lib/apt/lists/*
8
 
 
21
  # Install build tools
22
  RUN npm install -g tsx jison typescript esbuild
23
 
24
+ # Install deps with verbose output
25
  RUN npm install --omit=dev
26
+ RUN cd app && npm install --loglevel verbose 2>&1 || (echo "APP NPM INSTALL FAILED" && exit 1)
27
  RUN cd backend && npm install
28
 
29
  # Copy source files