-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (21 loc) · 924 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
35
36
37
38
39
FROM golang:buster as go_builder
WORKDIR /home
COPY . .
RUN GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o publisher
FROM debian:stable-slim as monero_builder
ARG monero_url=https://downloads.getmonero.org/cli/monero-linux-x64-v0.17.1.9.tar.bz2
ARG monero_checksum=0fb6f53b7b9b3b205151c652b6c9ca7e735f80bfe78427d1061f042723ee6381
WORKDIR /tmp
RUN apt-get update && apt-get install wget tar bzip2 -y
RUN wget ${monero_url} -O monero.tar.bz2
RUN echo "${monero_checksum} monero.tar.bz2" | sha256sum -c || exit 1
RUN tar -xvjf monero.tar.bz2 --strip-component=1
FROM debian:stable-slim
COPY --from=monero_builder /tmp/monero-wallet-rpc /usr/bin/monero-wallet-rpc
COPY --from=go_builder /home/publisher /usr/bin/publisher
VOLUME ["/monero"]
ENTRYPOINT [ \
"/usr/bin/monero-wallet-rpc", \
"--non-interactive", \
"--tx-notify=/usr/bin/publisher tx %s" \
]