-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (22 loc) · 860 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
24
25
26
27
28
29
30
31
32
33
34
ARG VERSION=0.21.2.1
# ******* Stage: setup ******* #
FROM debian:stable AS setup
ARG VERSION
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends wget apt-transport-https ca-certificates
WORKDIR /litecoind
RUN wget "https://github.com/litecoin-project/litecoin/releases/download/v${VERSION}/litecoin-${VERSION}-x86_64-linux-gnu.tar.gz" \
&& tar -xvf litecoin-${VERSION}-x86_64-linux-gnu.tar.gz
# ******* Stage: release ******* #
FROM debian:stable
ARG VERSION
RUN apt-get update && apt-get install --yes --no-install-recommends tini
COPY --from=setup /litecoind/litecoin-${VERSION}/bin /usr/local/bin
COPY ./entrypoints/entrypoint.sh /entrypoint.sh
# default ports
#
# rpc p2p zmq
# ↓ ↓ ↓
EXPOSE 9332 8333 28332
ENTRYPOINT ["/entrypoint.sh"]
CMD ["litecoind"]