Skip to content

Skip GitHook Install for Production #300 Fix#311

Open
shxhid01 wants to merge 2 commits intocompsci-adl:mainfrom
shxhid01:main
Open

Skip GitHook Install for Production #300 Fix#311
shxhid01 wants to merge 2 commits intocompsci-adl:mainfrom
shxhid01:main

Conversation

@shxhid01
Copy link
Copy Markdown
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.

Comment thread dev.Dockerfile
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
Copy Markdown
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