Skip to content
Snippets Groups Projects
Dockerfile.deploy 669 B
Newer Older
FROM quay.io/eris/base:alpine
MAINTAINER Monax <support@monax.io>

ENV TARGET eris-db

# runtime customization start here
Casey Kuhlman's avatar
Casey Kuhlman committed
COPY ./eris-client $INSTALL_BASE/eris-client
COPY ./bin/start_eris_db $INSTALL_BASE/erisdb-wrapper
# runtime customization end here

# Get the binary from the artifact in pwd
Casey Kuhlman's avatar
Casey Kuhlman committed
COPY ./"$TARGET"_build_artifact $INSTALL_BASE/$TARGET
RUN chmod +x --recursive $INSTALL_BASE

# Finalize
RUN chown --recursive $USER:$USER /home/$USER
VOLUME $ERIS
WORKDIR $ERIS
USER $USER

# runtime customization start here
# Expose ports for 1337:eris-db API; 46656:tendermint-peer; 46657:tendermint-rpc
EXPOSE 1337
EXPOSE 46656
EXPOSE 46657

CMD [ "eris-db", "serve" ]