Skip to content

Instantly share code, notes, and snippets.

@marsmensch
Forked from Zatvobor/dashd.dockerfile
Created May 20, 2017 12:59
Show Gist options
  • Save marsmensch/f2946b02321b045f6705ae17f2b9131d to your computer and use it in GitHub Desktop.
Save marsmensch/f2946b02321b045f6705ae17f2b9131d to your computer and use it in GitHub Desktop.
DASHD Dockerfile
FROM ubuntu:14.04
MAINTAINER Zatvobor <http://zatvobor.github.io>
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#RUN echo 'root:screencast' | chpasswd
ENV HOME /dash
RUN /usr/sbin/useradd -s /bin/bash -m -d /dash dash && chown dash:dash -R /dash
ENV DASH_VERSION 0.12.0.56
ENV DASH_DOWNLOAD_URL https://www.dashpay.io/binaries/dash-$DASH_VERSION-linux64.tar.gz
ENV DASH_SHA256 cd645b1dead2ece19f1ca9805decd314cc6b3970499dd02ab5273578e5ba663c
RUN cd /tmp \
&& curl -sSL "$DASH_DOWNLOAD_URL" -o dash.tgz \
&& echo "$DASH_SHA256 *dash.tgz" | /usr/bin/sha256sum -c - \
&& tar xzf dash.tgz --no-anchored dashd dash-cli --transform='s/.*\///' \
&& mv dashd dash-cli /usr/bin/ \
&& rm -rf dash* \
&& echo "#""!/bin/bash\n/usr/bin/dashd -datadir=/dash \"\$@\"" > /usr/local/bin/dashd \
&& echo "#""!/bin/bash\n/usr/bin/dash-cli -datadir=/dash \"\$@\"" > /usr/local/bin/dash-cli \
&& chmod a+x /usr/local/bin/dashd /usr/local/bin/dash-cli /usr/bin/dashd /usr/bin/dash-cli
USER dash
VOLUME ["/dash"]
EXPOSE 9999 9998
# Default arguments, can be overriden
CMD ["dashd"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment