Move images into contrib/images/. Replace "bad tag" cosmos-sdk/simapp with cosmos-sdk/simd-env. 'simapp' is a misnomer as the images serves only as host environment for the binaries that are in fact built by the developer on their machine. Remove the build-docker-local-simapp target altogether from the Makefile in favor of an inline conditional statement that causes the image to be rebuilt if and only if it had not been built before. simd binary won't run as root anymore as root privileges are dropped upon simd binary installation. Co-authored-by: Marko Baricevic <marbar3778@yahoo.com> Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Alessio Treglia <alessio@tendermint.com>
19 lines
305 B
Docker
19 lines
305 B
Docker
FROM ubuntu:18.04
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y upgrade && \
|
|
apt-get -y install curl jq file
|
|
|
|
ARG UID=1000
|
|
ARG GID=1000
|
|
|
|
USER ${UID}:${GID}
|
|
VOLUME [ /simd ]
|
|
WORKDIR /simd
|
|
EXPOSE 26656 26657
|
|
ENTRYPOINT ["/usr/bin/wrapper.sh"]
|
|
CMD ["start"]
|
|
STOPSIGNAL SIGTERM
|
|
|
|
COPY wrapper.sh /usr/bin/wrapper.sh
|