Skip to content

Instantly share code, notes, and snippets.

@ImanMousavi
Created June 11, 2022 14:34
Show Gist options
  • Save ImanMousavi/531cb463d0b46a051ee420fc0c21bcbd to your computer and use it in GitHub Desktop.
Save ImanMousavi/531cb463d0b46a051ee420fc0c21bcbd to your computer and use it in GitHub Desktop.
ARG version=1.14.4
ARG file=dogecoin-${version}-x86_64-linux-gnu.tar.gz
ARG folder=dogecoin-${version}
FROM debian:stable as stage1
ARG version
ARG file
ARG folder
WORKDIR /the/workdir
RUN apt update
RUN apt install -y wget
RUN wget https://github.com/dogecoin/dogecoin/releases/download/v${version}/${file}
RUN tar -vxf ${file}
RUN chmod +x /the/workdir/${folder}/bin/dogecoind
FROM photon
ARG folder
COPY --from=stage1 /the/workdir/${folder}/bin/dogecoind /app/dogecoind
VOLUME /data
EXPOSE 22555 22556 44555 44556
CMD ["/app/dogecoind"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment