[localnet] execute cmd from root

not secure, but we don't care because it's local tooling
This commit is contained in:
Anton Kaliaev 2018-04-12 13:44:13 +02:00
parent 5babaf9a88
commit f8ed578325
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 5 deletions

View File

@ -3,11 +3,8 @@ MAINTAINER Greg Szabo <greg@tendermint.com>
RUN apk update && \
apk upgrade && \
apk --no-cache add curl jq file && \
addgroup tmuser && \
adduser -S -G tmuser tmuser -h /tendermint
apk --no-cache add curl jq file
USER tmuser
VOLUME [ /tendermint ]
WORKDIR /tendermint
EXPOSE 46656 46657
@ -15,5 +12,5 @@ ENTRYPOINT ["/usr/bin/wrapper.sh"]
CMD ["node", "--proxy_app dummy"]
STOPSIGNAL SIGTERM
COPY --chown=tmuser:tmuser wrapper.sh /usr/bin/wrapper.sh
COPY wrapper.sh /usr/bin/wrapper.sh