opengovsg / mockpass

A mock SingPass/CorpPass/MyInfo server for dev purposes
https://blog.data.gov.sg/mockpass-a-mock-singpass-corppass-server-for-testing-in-development-a583193c898c
MIT License
86 stars 82 forks source link

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

Closed SeanChinJunKai closed 5 months ago

SeanChinJunKai commented 5 months ago

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