-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
26 lines (18 loc) · 1.06 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
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-wallet* /usr/bin/
# Default monero wallet-rpc ports: monero, testnet, stagenet; regtest should use same as mainnet
EXPOSE 18083 28083 38083
LABEL "org.opencontainers.image.description"="A ready to use monero wallet-rpc image suited for CI and tests."
CMD ["sh", "-c", "/usr/bin/monero-wallet-rpc --disable-rpc-login --wallet-dir wallets --daemon-address $MONERO_DAEMON_ADDRESS --rpc-bind-ip 0.0.0.0 --rpc-bind-port $WALLET_RPC_PORT --confirm-external-bind --trusted-daemon --allow-mismatched-daemon-version"]