Skip to content

Commit fd53039

Browse files
committed
Add Dockerfile for building nix-tools
1 parent 12d9ba3 commit fd53039

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

nix-tools/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM glcr.b-data.ch/ghc/ghc-musl:9.12.1
2+
3+
RUN apk add libsodium-static zlib zlib-dev
4+
5+
WORKDIR /tmp/nix-tools
6+
7+
RUN cabal update
8+
9+
RUN cabal build all --only-dependencies
10+
11+
RUN cabal build all --enable-executable-static
12+
13+
RUN find ./dist-newstyle/build/x86_64-linux/ghc-9.12.1/*/x/ -type f -executable | xargs tar -cJf nix-tools-alpine.tar.xz

0 commit comments

Comments
 (0)