fix: force NODE_ENV=development during npm ci so tsc is installed

Made-with: Cursor
This commit is contained in:
2026-02-27 19:30:40 -08:00
parent d9368e4abd
commit f2fc976637

View File

@@ -9,9 +9,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app
# Install all deps (including devDeps for tsc)
# Install all deps including devDeps (tsc needs them).
# Override NODE_ENV so Coolify's build-time NODE_ENV=production doesn't skip devDeps.
COPY package*.json ./
RUN npm ci
RUN NODE_ENV=development npm ci
# Copy source and compile
COPY tsconfig.json ./