fix: force NODE_ENV=development during npm ci so tsc is installed
Made-with: Cursor
This commit is contained in:
@@ -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 ./
|
||||
|
||||
Reference in New Issue
Block a user