Skip to content

Instantly share code, notes, and snippets.

@javahippie
Last active November 17, 2018 11:04
Show Gist options
  • Save javahippie/efee5417c69aaad3baf297dd2cd71fc6 to your computer and use it in GitHub Desktop.
Save javahippie/efee5417c69aaad3baf297dd2cd71fc6 to your computer and use it in GitHub Desktop.
Dockerfile for an Ethereum bootnode
FROM ubuntu:xenial
MAINTAINER Tim Zöller <mail@tim-zoeller.de>
RUN apt-get update \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR "/opt"
ARG BINARY="geth-alltools-linux-amd64-1.8.1-1e67410e.tar.gz"
RUN wget "https://gethstore.blob.core.windows.net/builds/$BINARY"
RUN tar -xzvf $BINARY --strip 1
RUN rm $BINARY
ENV nodekeyhex=""
CMD exec ./bootnode -nodekeyhex $nodekeyhex
EXPOSE 30301/udp
EXPOSE 30303/udp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment