Skip to content

Automate browser based workflows with AI

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

Shuchang Zhenga8a3b0ad1e1e
diff --git a/Dockerfile.ui b/Dockerfile.ui
index 24e63c522..546b75efd 100644
--- a/Dockerfile.ui
+++ b/Dockerfile.ui
@@ -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/ ./