Skip to content

Instantly share code, notes, and snippets.

@blockpane
Last active August 27, 2020 03:00
Show Gist options
  • Save blockpane/24c582a2feb652af19b369e76d05e285 to your computer and use it in GitHub Desktop.
Save blockpane/24c582a2feb652af19b369e76d05e285 to your computer and use it in GitHub Desktop.
FIO dockerfile
FROM ubuntu:18.04
RUN apt-get update; apt-get -y dist-upgrade; apt-get -y install wget jq
RUN wget "https://bin.fioprotocol.io/mainnet/fioprotocol-2.0.x-latest-ubuntu-18.04-amd64.deb" && \
apt-get install -y ./fioprotocol-2.0.x-latest-ubuntu-18.04-amd64.deb && rm -f ./fioprotocol-2.0.x-latest-ubuntu-18.04-amd64.deb
# testnet:
#WORKDIR /etc/fio/nodeos
#RUN rm -f config.ini genesis.json && ln -s genesis-testnet.json genesis.json && ln -s testnet-config.ini config.ini
EXPOSE 8888/tcp
EXPOSE 3856/tcp
USER fio
WORKDIR /var/lib/fio
CMD ["/usr/local/bin/fio-nodeos-run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment