forked from UnstoppableSwap/containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 1.1 KB
/
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
FROM debian:bullseye-slim AS install
ARG VRS
ENV VERSION=${VRS:-v0.18.2.2}
RUN echo $VERSION
RUN apt update && apt install -y wget tar bzip2
# Get bins and signatures
RUN wget https://downloads.getmonero.org/cli/monero-linux-x64-$VERSION.tar.bz2
COPY SHASUM ./
RUN echo "$(head -n 1 ./SHASUM) monero-linux-x64-$VERSION.tar.bz2" | sha256sum -c
# Extract and install binaries
RUN tar xf monero-linux-x64-$VERSION.tar.bz2
RUN install -m 0755 -o root -g root -t /usr/bin monero-x86_64-linux-gnu-$VERSION/monero*
FROM debian:bullseye-slim
COPY --from=install /usr/bin/monero* /usr/bin/
# Monero default p2p ports: monero, testnet, stagenet
EXPOSE 18080 28080 38080
# Monero default rpc ports: monero, testnet, stagenet
EXPOSE 18081 28081 38081
# Monero default zmq ports: monero, testnet, stagenet
EXPOSE 18082 28082 38082
LABEL "org.opencontainers.image.description"="A ready to use monerod image suited for CI and tests."
CMD ["sh", "-c", "/usr/bin/monerod --$NETWORK --p2p-bind-ip 0.0.0.0 --rpc-bind-ip 0.0.0.0 --zmq-rpc-bind-ip 0.0.0.0 --confirm-external-bind --non-interactive $OFFLINE --fixed-difficulty $DIFFICULTY"]