Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docker): copy .husky during docker build #669

Merged
merged 1 commit into from
May 27, 2024

Conversation

SeanChinJunKai
Copy link
Contributor

@SeanChinJunKai SeanChinJunKai commented May 26, 2024

Problem

FormSG is currently using v4.04 of mockpass however when upgrading mockpass to latest (v4.3.0) there is an error when running docker compose because .husky is not copied so when we run npm ci .husky directory does not exist causing docker build image to fail

Solution

I copy the .husky directory first to ensure when I run npm ci the prepare script in package.json can run successfully

@LoneRifle LoneRifle changed the title fix: .husky not found when running docker compose in FormSG fix(docker): copy .husky during docker build May 27, 2024
@LoneRifle LoneRifle merged commit 52a3092 into opengovsg:main May 27, 2024
3 checks passed
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