fix(docker): force dev deps in UI builder stage to fix "tsc: not found" (#6523)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Shuchang Zheng 2026-06-11 14:22:08 -07:00 committed by GitHub
parent cfcf6b1a63
commit a8a3b0ad1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,9 @@ WORKDIR /app
# Copy dependency files first for better Docker layer caching
COPY ./skyvern-frontend/package.json ./skyvern-frontend/package-lock.json ./
RUN npm ci
# --include=dev keeps tsc/vite installed even if NODE_ENV=production is inherited
# from the host/build env (npm omits devDependencies otherwise -> "tsc: not found").
RUN npm ci --include=dev
# Copy source code
COPY ./skyvern-frontend/ ./