@@ -7,20 +7,11 @@ RUN ln --symbolic --no-dereference --force /usr/share/zoneinfo/$TZ /etc/local
77RUN apt update \
88 && apt upgrade --yes \
99 && 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
2415
2516RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
2617
@@ -34,18 +25,26 @@ RUN /home/user/.install-stack/install-stack.sh
3425
3526USER $USER_ID:$GROUP_ID
3627
37- RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.28.0
38-
3928ENV LC_ALL=C.UTF-8
4029
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
4139RUN 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
4442ENV PATH=/home/user/hlint:$PATH
4543
44+ ARG STYLISH_HASKELL=0.11.0.0
4645RUN 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
4948ENV PATH=/home/user/stylish-haskell:$PATH
5049
5150ADD --chown=user:user stack.yaml /home/user/.tmp-haskell/
0 commit comments