move monero wallet creation into container entrypoint
This commit is contained in:
@@ -13,6 +13,7 @@ RUN apt-get update \
|
||||
&& curl -fsSL "https://downloads.getmonero.org/cli/monero-linux-${monero_arch}-v${MONERO_VERSION}.tar.bz2" \
|
||||
| tar -xj -C /tmp \
|
||||
&& install -m 755 "$(find /tmp -type f -name monero-wallet-rpc | head -n 1)" /monero-wallet-rpc \
|
||||
&& install -m 755 "$(find /tmp -type f -name monero-wallet-cli | head -n 1)" /monero-wallet-cli \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
@@ -22,17 +23,10 @@ RUN apt-get update \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=build /monero-wallet-rpc /usr/local/bin/monero-wallet-rpc
|
||||
COPY --from=build /monero-wallet-cli /usr/local/bin/monero-wallet-cli
|
||||
|
||||
CMD ["/bin/sh", "-ec", "\
|
||||
exec monero-wallet-rpc \
|
||||
\"--${MONERO_NETWORK}\" \
|
||||
--daemon-address=\"${MONERO_DAEMON_ADDRESS}\" \
|
||||
--trusted-daemon \
|
||||
--no-initial-sync \
|
||||
--rpc-bind-ip=0.0.0.0 \
|
||||
--rpc-bind-port=${MONERO_WALLET_RPC_PORT} \
|
||||
--confirm-external-bind \
|
||||
--rpc-login=\"${MONERO_WALLET_RPC_USERNAME}:${MONERO_WALLET_RPC_PASSWORD}\" \
|
||||
--wallet-file=\"/monero/wallet/${MONERO_WALLET_NAME}\" \
|
||||
--password=\"${MONERO_WALLET_PASSWORD}\" \
|
||||
"]
|
||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user