forked from dautonomous/scilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 927 Bytes
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 927 Bytes
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
# escape=\
ARG BASE_IMAGE=ubuntu:18.04
FROM ${BASE_IMAGE}
ARG MAJOR_VERSION=0
COPY . /scilla/${MAJOR_VERSION}
WORKDIR /scilla/${MAJOR_VERSION}
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:avsm/ppa -y \
&& apt-get update && apt-get install -y --no-install-recommends \
curl \
wget \
cmake \
build-essential \
m4 \
ocaml \
opam \
pkg-config \
zlib1g-dev \
libgmp-dev \
libffi-dev \
libssl-dev \
libsecp256k1-dev \
libboost-system-dev \
libboost-test-dev \
libpcre3-dev \
&& rm -rf /var/lib/apt/lists/*
ENV OCAML_VERSION 4.08.1
# CMake gets installed here
ENV PATH="/root/.local/bin:${PATH}"
RUN bash scripts/install_cmake_ubuntu.sh \
&& make opamdep-ci \
&& echo '. ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true ' >> ~/.bashrc \
&& eval $(opam env) && \
make