mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
wownero: integration
This commit is contained in:
16
docker/production/wownero_wallet/Dockerfile
Normal file
16
docker/production/wownero_wallet/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM i_wownero_daemon
|
||||
|
||||
ENV WOWNERO_DATA /data
|
||||
|
||||
RUN groupadd -r wownero_wallet && useradd -r -m -g wownero_wallet wownero_wallet \
|
||||
&& apt-get update \
|
||||
&& apt-get install -qq --no-install-recommends gosu \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& mkdir -p "$WOWNERO_DATA" \
|
||||
&& chown -R wownero_wallet:wownero_wallet "$WOWNERO_DATA"
|
||||
VOLUME $WOWNERO_DATA
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
CMD ["/wownero/wownero-wallet-rpc", "--non-interactive", "--config-file=/data/wownero-wallet-rpc.conf", "--confirm-external-bind"]
|
||||
11
docker/production/wownero_wallet/entrypoint.sh
Executable file
11
docker/production/wownero_wallet/entrypoint.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [[ "$1" == "wownero-wallet-rpc" ]]; then
|
||||
mkdir -p "$WOWNERO_DATA"
|
||||
|
||||
chown -h wownero_wallet:wownero_wallet /data
|
||||
exec gosu wownero_wallet "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user