Skip to content

Instantly share code, notes, and snippets.

@alFReD-NSH
Created November 15, 2019 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alFReD-NSH/f862d0443674ca936b2806736853f925 to your computer and use it in GitHub Desktop.
Save alFReD-NSH/f862d0443674ca936b2806736853f925 to your computer and use it in GitHub Desktop.
Tezos Docker Build
################################
### 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