docker: bring Dockerfile in line with Alpine 3.23 / GHC 9.12.4 CI#57
Merged
Conversation
PR #52 unified CI on Alpine 3.23 + GHC 9.12.4 but left docker/Dockerfile on alpine:3.19. That combination is now broken end-to-end: - ghcup install ghc 9.12.4 has no alpine3_19 bindist; the alpine3_20 fallback fails at `gmake install` on a 3.19 base. - Bumping the base to 3.23 surfaces a second issue: Alpine 3.23 split the static libgmp out into its own `gmp-static` package, so the final static link fails with `cannot find -lgmp` unless we add it explicitly. Both build and runtime stages move to alpine:3.23 (matches CI) and the build stage gains gmp-static alongside the other *-static packages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker/Dockerfileonalpine:3.19. That combination is now broken end-to-end:ghcup install ghc 9.12.4has noalpine3_19bindist; thealpine3_20fallback fails atgmake installon a 3.19 base.libgmp.aout into its owngmp-staticpackage, so the final static link fails withcannot find -lgmpunless we add it explicitly.alpine:3.23(matches CI) and the build stage gainsgmp-staticalongside the other*-staticpackages.Test plan
docker build -f docker/Dockerfile -t volca .completes end-to-end on Linux/amd64docker run --rm volca --help) and reports the expected versionvolca-deploy'svolca/docker-build.sh --with-frontendoverlay build no longer trips on the missing/data/bundled snapshot