You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
857 B

FROM debian:stable-slim
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
7 years ago
COPY ./bin /usr/local/bin
COPY ./VERSION /tmp
COPY ./CHECKSUM /tmp
RUN VERSION=`cat /tmp/VERSION` && \
chmod a+x /usr/local/bin/* && \
apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates unzip && \
6 years ago
curl -L https://github.com/vertcoin-project/vertcoin-core/releases/download/$VERSION/vertcoind-v$VERSION-linux-amd64.zip --output /tmp/prebuilt.zip && \
echo "$(cat /tmp/CHECKSUM) /tmp/prebuilt.zip" | sha256sum -c && \
unzip /tmp/prebuilt.zip -d /tmp && \
mv /tmp/vertcoind /usr/local/bin && \
apt-get purge -y curl ca-certificates unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
7 years ago
VOLUME ["/data"]
ENV HOME /data
ENV DATA /data
7 years ago
WORKDIR /data
EXPOSE 5888 5889
7 years ago
ENTRYPOINT ["init"]