Skip to content

Commit dc2a55a

Browse files
committed
add Dockerfile
resulting image deployed as ghcr.io/ulysses4ever/lh-array-sort
1 parent 56609d0 commit dc2a55a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM benz0li/ghc-musl:9.10.1
2+
3+
RUN apk upgrade --no-cache \
4+
&& apk add --no-cache \
5+
z3 git
6+
7+
RUN mkdir cabal-dir \
8+
&& export CABAL_DIR=/cabal-dir \
9+
&& cabal update \
10+
&& git clone https://github.com/michaelborkowski/lh-array-sort-new.git app \
11+
&& cd app \
12+
&& cabal configure --constraint="lh-array-sort -liquid-checks +prim-mutable-arrays" --enable-tests \
13+
&& cabal build --builddir dist-docker \
14+
&& cabal test --builddir dist-docker \
15+
&& cd .. \
16+
&& rm -rf /app
17+
18+
CMD ["bash"]

0 commit comments

Comments
 (0)