forked from nektro/docker-dogecoin
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
23 lines (21 loc) · 822 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG version=1.14.5
FROM --platform=${BUILDPLATFORM} debian:stable as stage1
ARG version
ARG TARGETPLATFORM
WORKDIR /the/workdir
RUN \
case ${TARGETPLATFORM} in \
"linux/amd64") DOWNLOAD_ARCH="x86_64-linux-gnu" ;; \
"linux/arm/v7") DOWNLOAD_ARCH="arm-linux-gnueabihf" ;; \
esac && \
apt update && \
apt install -y wget && \
wget https://github.com/dogecoin/dogecoin/releases/download/v${version}/dogecoin-${version}-${DOWNLOAD_ARCH}.tar.gz && \
tar -vxf dogecoin-${version}-${DOWNLOAD_ARCH}.tar.gz && \
chmod +x /the/workdir/dogecoin-${version}/bin/dogecoind
FROM debian:stable
ARG version
COPY --from=stage1 /the/workdir/dogecoin-${version}/bin/dogecoind /app/dogecoind
VOLUME /data
EXPOSE 22555
ENTRYPOINT [ "/app/dogecoind", "-printtoconsole", "-datadir=/data", "-server", "-rpcport=22555" ]