@@ -7,20 +7,11 @@ RUN ln --symbolic --no-dereference --force /usr/share/zoneinfo/$TZ /etc/local
7
7
RUN apt update \
8
8
&& apt upgrade --yes \
9
9
&& apt install --yes \
10
- autoconf bison clang-6.0 cmake curl flex gcc git jq libboost-test-dev \
11
- libffi-dev libgmp-dev libjemalloc-dev libmpfr-dev libtool \
12
- libyaml-cpp-dev libz3-dev make maven opam openjdk-8-jdk pandoc \
13
- pkg-config python3 python-pygments python-recommonmark python-sphinx \
14
- time zlib1g-dev
15
-
16
- RUN git clone 'https://github.com/z3prover/z3' --branch=z3-4.6.0 \
17
- && cd z3 \
18
- && python scripts/mk_make.py \
19
- && cd build \
20
- && make -j8 \
21
- && make install \
22
- && cd ../.. \
23
- && rm -rf z3
10
+ bison curl flex gcc git jq \
11
+ make openjdk-8-jdk pandoc \
12
+ libtinfo-dev \
13
+ python3 python-pygments python-recommonmark python-sphinx \
14
+ time unzip wget
24
15
25
16
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
26
17
@@ -34,18 +25,26 @@ RUN /home/user/.install-stack/install-stack.sh
34
25
35
26
USER $USER_ID:$GROUP_ID
36
27
37
- RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.28.0
38
-
39
28
ENV LC_ALL=C.UTF-8
40
29
30
+ ARG Z3=4.8.8
31
+ RUN cd /home/user \
32
+ && wget https://github.com/Z3Prover/z3/releases/download/z3-$Z3/z3-$Z3-x64-ubuntu-16.04.zip \
33
+ && unzip z3-$Z3-x64-ubuntu-16.04.zip \
34
+ && rm z3-$Z3-x64-ubuntu-16.04.zip \
35
+ && mv z3-$Z3-x64-ubuntu-16.04 z3
36
+ ENV PATH=/home/user/z3/bin:$PATH
37
+
38
+ ARG HLINT=3.2
41
39
RUN cd /home/user \
42
- && curl https://github.com/ndmitchell/hlint/releases/download/v3.1 /hlint-3.1 -x86_64-linux.tar.gz -sSfL | tar xzf - \
43
- && mv hlint-3.1 hlint
40
+ && curl https://github.com/ndmitchell/hlint/releases/download/v$HLINT /hlint-$HLINT -x86_64-linux.tar.gz -sSfL | tar xzf - \
41
+ && mv hlint-$HLINT hlint
44
42
ENV PATH=/home/user/hlint:$PATH
45
43
44
+ ARG STYLISH_HASKELL=0.11.0.0
46
45
RUN cd /home/user \
47
- && curl https://github.com/jaspervdj/stylish-haskell/releases/download/v0.11.0.0 /stylish-haskell-v0.11.0.0 -linux-x86_64.tar.gz -sSfL | tar xzf - \
48
- && mv stylish-haskell-v0.11.0.0 -linux-x86_64 stylish-haskell
46
+ && curl https://github.com/jaspervdj/stylish-haskell/releases/download/v$STYLISH_HASKELL /stylish-haskell-v$STYLISH_HASKELL -linux-x86_64.tar.gz -sSfL | tar xzf - \
47
+ && mv stylish-haskell-v$STYLISH_HASKELL -linux-x86_64 stylish-haskell
49
48
ENV PATH=/home/user/stylish-haskell:$PATH
50
49
51
50
ADD --chown=user:user stack.yaml /home/user/.tmp-haskell/
0 commit comments