FROM ubuntu:bionic

RUN apt-get update && \
    apt-get -y -qq upgrade && \
    apt-get -y -qq install software-properties-common && \
    add-apt-repository ppa:ethereum/ethereum && \
    apt-get update && \
    apt-get -y -qq install geth-unstable solc && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

EXPOSE 8545

ENTRYPOINT ["geth --rinkeby --rpcapi personal,db,eth,net,web3,admin --rpc --rpcaddr 0.0.0.0 --rpcvhosts '*' --datadir /mnt/data"]
