Skip to content

Commit 980937c

Browse files
VladUZHclaude
andcommitted
fix: use LEFTHOOK=0 instead of --ignore-scripts in Dockerfiles
--ignore-scripts prevented devDeps like tsup from working. LEFTHOOK=0 disables only the lefthook prepare hook while keeping all package installations and build scripts functional. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2a056cb commit 980937c

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

apps/demo-devops/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
FROM node:20-alpine AS deps
22
WORKDIR /app
3+
ENV LEFTHOOK=0
34
COPY package.json package-lock.json turbo.json ./
45
COPY packages/shared/package.json ./packages/shared/
56
COPY packages/sdk/package.json ./packages/sdk/
67
COPY apps/demo-devops/package.json ./apps/demo-devops/
7-
RUN npm ci --ignore-scripts
8+
RUN npm ci
89

910
FROM node:20-alpine AS build
1011
WORKDIR /app

apps/demo-healthcare/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
FROM node:20-alpine AS deps
22
WORKDIR /app
3+
ENV LEFTHOOK=0
34
COPY package.json package-lock.json turbo.json ./
45
COPY packages/shared/package.json ./packages/shared/
56
COPY packages/sdk/package.json ./packages/sdk/
67
COPY apps/demo-healthcare/package.json ./apps/demo-healthcare/
7-
RUN npm ci --ignore-scripts
8+
RUN npm ci
89

910
FROM node:20-alpine AS build
1011
WORKDIR /app

apps/demo/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
FROM node:20-alpine AS deps
22
WORKDIR /app
3+
ENV LEFTHOOK=0
34
COPY package.json package-lock.json turbo.json ./
45
COPY packages/shared/package.json ./packages/shared/
56
COPY packages/sdk/package.json ./packages/sdk/
67
COPY apps/demo/package.json ./apps/demo/
7-
RUN npm ci --ignore-scripts
8+
RUN npm ci
89

910
FROM node:20-alpine AS build
1011
WORKDIR /app

0 commit comments

Comments
 (0)