Skip to content

Commit 3491f89

Browse files
authored
Merge pull request #177 from Lemoncode/fix/front-cd
update
2 parents 29dc8b5 + 83db81a commit 3491f89

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

front/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ COPY . .
2222
# hijacking yarn calls that Next.js SWC patching makes internally.
2323
# Then rebuild native modules (e.g. @tailwindcss/oxide) that were
2424
# skipped by --ignore-scripts above.
25+
# Finally, install the musl binary for tailwindcss/oxide
26+
# (the lock file only has darwin-arm64, not linux-x64-musl).
2527
RUN node -e "const p='package.json',j=JSON.parse(require('fs').readFileSync(p));delete j.packageManager;require('fs').writeFileSync(p,JSON.stringify(j,null,2))" \
26-
&& npm rebuild
28+
&& npm rebuild \
29+
&& cd front && npm install @tailwindcss/oxide-linux-x64-musl --no-save
2730

2831
# 5) Build the internal dependency used by the front (db-model)
2932
RUN npm run -w db-model build --if-present

0 commit comments

Comments
 (0)