Added dockerfiles for applications

This commit is contained in:
Greg Szabo
2017-07-04 16:23:51 +00:00
parent e7a96b469a
commit db4bba72a2
5 changed files with 138 additions and 32 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM busybox
#Use --build-arg to change where the ethermint binary and setup directory resides
ARG ETHERMINT_BINARY=ethermint
ARG SETUP_DIR=setup
ENV EMHOME /ethermint
COPY $ETHERMINT_BINARY /usr/bin/ethermint
COPY $SETUP_DIR /setup
RUN adduser -h $EMHOME -D ethermint
VOLUME [ $EMHOME ]
EXPOSE 46658
USER ethermint
ENTRYPOINT ["/usr/bin/ethermint","--datadir","$EMHOME"]
WORKDIR $EMHOME
STOPSIGNAL SIGTERM