diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 43f69a99946cf20226812b0dd5b8d059aa224551..8585b55275fb1bf120c5844237b769dece9a2958 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,7 +35,7 @@
     DOCKER_DRIVER: overlay2
     DOCKER_TLS_CERTDIR: "/certs"
     BUILDX_NO_DEFAULT_ATTESTATIONS: "true"
-    GHC_VERSION_BUILD: "9.6.1"
+    GHC_VERSION_BUILD: "9.6.2"
     CABAL_VERSION_BUILD: "3.10.1.0"
   before_script:
     - *before-script-build
diff --git a/latest.Dockerfile b/latest.Dockerfile
index 23baee674418382b5d402de0912128ef3e8307b6..a5b666c040c6610098017df074c15428fd587ea4 100644
--- a/latest.Dockerfile
+++ b/latest.Dockerfile
@@ -52,7 +52,7 @@ RUN cd /tmp \
   # See https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history
   && cabal install --allow-newer --constraint 'Cabal-syntax<3.11' cabal-install-$CABAL_VERSION
 
-FROM alpine:3.17 as builder
+FROM alpine:3.18 as builder
 
 LABEL org.opencontainers.image.licenses="MIT" \
       org.opencontainers.image.source="https://gitlab.b-data.ch/ghc/ghc-musl" \
@@ -81,7 +81,7 @@ RUN apk upgrade --no-cache \
     libcurl \
     libffi \
     libffi-dev \
-    llvm14 \
+    llvm16 \
     ncurses-dev \
     ncurses-static \
     openssl-dev \