Skip to content

Conversation

@shxhid01
Copy link
Contributor

Description

Updated both Docker build configurations to install dependencies with pnpm install --ignore-scripts, preventing git hooks from executing during image builds.

Changes Made

*Added the --ignore-scripts flag to the dependency installation step in the production Dockerfile.

Applied the same --ignore-scripts flag in the development Dockerfile to keep local containers from triggering git hooks.*

Related Issues

[Bug] Skip GitHook Install for Production #300.

COPY src/db/schema.ts src/db/schema.ts

RUN npm install -g pnpm && pnpm install
RUN npm install -g pnpm && pnpm install --ignore-scripts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove --ignore-scripts here since still it's needed for development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants