From 038cd2701dfb4b6aeddc8396743c2d43cbb5185d Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Sun, 3 May 2026 23:48:52 +0200 Subject: [PATCH] fix(docker): copy cbits/ before gen-cabal-config.sh PR #20 made gen-cabal-config.sh compile cbits/static-shims.c into a .o that the static link pulls in, but docker/Dockerfile still only copies volca.cabal, mumps-hs/ and gen-cabal-config.sh into the builder before invoking the script. The cc step fails with: cc1: fatal error: /build/volca/cbits/static-shims.c: No such file or directory so the SaaS / volca image build breaks at step 11. Add a COPY for cbits/ next to the other dependency-spec copies so the layer cache still invalidates only when shim sources change. --- docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 98041b4..986be34 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -48,6 +48,8 @@ WORKDIR /build COPY volca.cabal /build/volca/ COPY mumps-hs/ /build/mumps-hs/ COPY gen-cabal-config.sh /build/volca/ +# gen-cabal-config.sh compiles cbits/static-shims.c in static mode +COPY cbits/ /build/volca/cbits/ # Set up cabal.project with mumps-hs as local package # Static MUMPS: link .a libs into the binary so the runtime image needs no MUMPS package