-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
66 lines (50 loc) · 1.73 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM runtimeverificationinc/kframework:ubuntu-bionic
#####################
# Install packages. #
#####################
RUN apt-get update -q \
&& apt install --yes \
libstdc++6 \
llvm-6.0 \
clang++-6.0 \
clang-6.0
RUN git clone 'https://github.com/z3prover/z3' --branch=z3-4.8.7 \
&& cd z3 \
&& python scripts/mk_make.py \
&& cd build \
&& make -j8 \
&& make install \
&& cd ../.. \
&& rm -rf z3
ARG USER_ID=1000
ARG GROUP_ID=1000
# This user is set up in the runtimeverificationinc/kframework:* images.
RUN usermod -u $USER_ID user
USER user:user
##################
# Perl packages. #
##################
COPY --from=runtimeverificationinc/perl:ubuntu-bionic \
--chown=user:user \
/home/user/perl5 \
/home/user/perl5
###################
# Configure opam. #
###################
COPY --from=runtimeverificationinc/ocaml:ubuntu-bionic \
--chown=user:user \
/home/user/.opam \
/home/user/.opam
# This is where the rest of the dependencies go.
ENV DEPS_DIR="/home/user/c-semantics-deps"
############
# Build K. #
############
COPY --chown=user:user ./.build/k/ ${DEPS_DIR}/k
RUN cd ${DEPS_DIR}/k \
&& mvn package -q -U \
-DskipTests -DskipKTest \
-Dhaskell.backend.skip -Dllvm.backend.skip \
-Dcheckstyle.skip
ENV K_BIN="${DEPS_DIR}/k/k-distribution/target/release/k/bin"
ENTRYPOINT ["./scripts/docker-entrypoint.sh"]