[CI] add sudo to dockerfile, change dir owner in CI

4 jobs for 483-dev-corenlp-in-nix-flake-with-test-user in 43 minutes and 23 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Cabal
passed #18941
cabal

00:36:55

 
  Stack
failed #18942
stack

00:06:28

 
  Bench
skipped #18943
allowed to fail manual
bench
 
  Test
skipped #18944
test
 
Name Stage Failure
failed
stack Stack
copying path '/nix/store/562jc9ym7vd1zsw6sbq7i6j1vg8k1x32-libunistring-1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/v9rj8vr6q5j3kr9nmdwhc3mi7cg55xcs-libidn2-2.3.8' from 'https://cache.nixos.org'...
copying path '/nix/store/lmn7lwydprqibdkghw7wgcn21yhllz13-glibc-2.40-66' from 'https://cache.nixos.org'...
copying path '/nix/store/4kark163478mlnx42k2gakrji1z43z9m-ncurses-6.5' from 'https://cache.nixos.org'...
copying path '/nix/store/wqg50ip92b4626ryk097yszg6lyi32bf-readline-8.3p1' from 'https://cache.nixos.org'...
copying path '/nix/store/lb33m49aslmvkx5l4xrkiy7m6nbh2kqf-bash-interactive-5.3p0' from 'https://cache.nixos.org'...
/builds/gargantext/haskell-gargantext/.stack-root/pantry/pantry.sqlite3.pantry-write-lock: openFdAt: permission denied (Permission denied)
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1