Browse Source

Dockerfile update and fixes

pull/1943/head
Greg Szabo 7 years ago
parent
commit
d73a7397b5
1 changed files with 8 additions and 10 deletions
  1. +8
    -10
      docker/tendermint-automated/Dockerfile

+ 8
- 10
docker/tendermint-automated/Dockerfile View File

@ -1,21 +1,19 @@
FROM alpine:3.7
FROM ubuntu:16.04
MAINTAINER Greg Szabo <greg@tendermint.com> MAINTAINER Greg Szabo <greg@tendermint.com>
#Default home for tendermint
#Default home for tendermint. The node command will look for $TMHOME/config/genesis.json at initialization.
ENV TMHOME /tendermint ENV TMHOME /tendermint
RUN apk --no-cache update && \
apk --no-cache upgrade && \
apk add --no-cache bash curl jq openssl && \
mkdir -p $TMHOME && \
addgroup tmuser && \
adduser -S -G tmuser tmuser && \
chown -R tmuser:tmuser $TMHOME
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install curl jq && \
adduser --system --home "$TMHOME" --group tmuser
USER tmuser
VOLUME [ $TMHOME ] VOLUME [ $TMHOME ]
WORKDIR $TMHOME
EXPOSE 46656 46657 EXPOSE 46656 46657
ENTRYPOINT ["/usr/bin/tendermint"] ENTRYPOINT ["/usr/bin/tendermint"]
CMD ["node", "--moniker=`hostname`"] CMD ["node", "--moniker=`hostname`"]
WORKDIR $TMHOME
STOPSIGNAL SIGTERM STOPSIGNAL SIGTERM
ARG BINARY=tendermint ARG BINARY=tendermint


Loading…
Cancel
Save