icebear0828 Claude Opus 4.6 commited on
Commit
9c91ebe
·
1 Parent(s): 8a1166d

fix: Dockerfile copies source before npm ci for postinstall

Browse files

postinstall runs setup-curl.ts which needs scripts/ directory.
Move COPY before npm ci so the script is available.

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

Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -7,13 +7,12 @@ RUN apt-get update && \
7
 
8
  WORKDIR /app
9
 
10
- # Install backend dependencies (postinstall downloads curl-impersonate for Linux)
11
- COPY package*.json ./
12
- RUN npm ci
13
-
14
- # Copy source
15
  COPY . .
16
 
 
 
 
17
  # Build frontend (Vite → public/)
18
  RUN cd web && npm ci && npm run build
19
 
 
7
 
8
  WORKDIR /app
9
 
10
+ # Copy everything first (postinstall needs scripts/setup-curl.ts)
 
 
 
 
11
  COPY . .
12
 
13
+ # Install backend dependencies (postinstall downloads curl-impersonate)
14
+ RUN npm ci
15
+
16
  # Build frontend (Vite → public/)
17
  RUN cd web && npm ci && npm run build
18