diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f7856f96d071a01b3245aea357625c7bd2e7389b..c8341e919b730ffcc258ee321754ca29fd1c336b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,13 +8,13 @@ deploy:
   image: utdemir/ghc-musl:v24-ghc8107
   script:
     - cabal build exe:myapp --enable-executable-static --enable-executable-stripping
-    - cabal install --installdir=. --enable-executable-static --enable-executable-stripping
+    - cabal install --install-method=copy --installdir=. --enable-executable-static --enable-executable-stripping
     - flyctl deploy
   cache:
     paths:
       - dist-newstyle/
     paths:
-      - ~/.cabal
+      - ~/.cabal/
   artifacts:
     paths:
       - myapp