Created
November 15, 2019 16:29
-
-
Save faridnsh/f862d0443674ca936b2806736853f925 to your computer and use it in GitHub Desktop.
Tezos Docker Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
### Builder image | |
################################ | |
FROM ubuntu:18.04 as builder | |
ENV VERSION=mainnet \ | |
OPAM_VERSION=2.0.4 | |
RUN apt update | |
RUN apt install -y \ | |
rsync \ | |
git \ | |
m4 \ | |
build-essential \ | |
patch \ | |
unzip \ | |
bubblewrap \ | |
wget \ | |
pkg-config \ | |
libgmp-dev \ | |
libev-dev \ | |
libhidapi-dev | |
RUN wget https://github.com/ocaml/opam/releases/download/$OPAM_VERSION/opam-$OPAM_VERSION-x86_64-linux && \ | |
cp opam-$OPAM_VERSION-x86_64-linux /usr/local/bin/opam && \ | |
chmod a+x /usr/local/bin/opam | |
RUN git clone https://gitlab.com/tezos/tezos.git | |
WORKDIR /tezos | |
RUN git checkout $VERSION | |
RUN opam init --bare --disable-sandboxing | |
RUN make build-deps | |
RUN eval $(opam env) && make | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment