-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 1.43 KB
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 1.43 KB
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
40
41
FROM --platform=$BUILDPLATFORM madebytimo/builder AS builder
ARG TARGETPLATFORM
WORKDIR /root/builder
ADD https://web.getmonero.org/downloads/hashes.txt hashes.txt
RUN download.sh https://raw.githubusercontent.com/monero-project/monero/refs/heads/master/utils/\
gpg_keys/binaryfate.asc \
&& gpg --keyring ./signature-public-keys.gpg --no-default-keyring --import binaryfate.asc \
&& rm binaryfate.asc \
&& gpg --keyring ./signature-public-keys.gpg --no-default-keyring --quiet \
--verify hashes.txt \
&& rm signature-public-keys.gpg* \
&& download.sh $(curl --head --location --output /dev/null --silent --write-out \
'%{url_effective}' https://downloads.getmonero.org/cli/$(echo "$TARGETPLATFORM" | \
sed --expression 's|/amd||' --expression 's|/arm64|arm8|')) \
&& sha256sum --ignore-missing --check hashes.txt \
&& rm hashes.txt \
&& compress.sh --decompress monero-*.tar.bz2 \
&& mv monero-*/monerod monero-*/LICENSE . \
&& rm -r monero-*
FROM madebytimo/base
WORKDIR /opt/monero
COPY --from=builder /root/builder/* .
COPY files/entrypoint.sh files/healthcheck.sh files/run.sh /usr/local/bin/
ENV BATCH_SIZE="10"
ENV PROXY_URL=""
ENV PRUNE_BLOCKCHAIN="false"
WORKDIR /
ENTRYPOINT [ "entrypoint.sh" ]
CMD [ "run.sh" ]
HEALTHCHECK CMD [ "healthcheck.sh" ]
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.source="https://github.com/mbt-infrastructure/docker-monerod"