mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
docker: Add PIVX, Dash and Firo to isolated config
Changed pivx-params location to PIVX datadir. Still need a way to set the Firo wallet seed.
This commit is contained in:
27
docker/production/dash/Dockerfile
Normal file
27
docker/production/dash/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
# https://github.com/NicolasDorier/docker-bitcoin/blob/master/README.md
|
||||
|
||||
FROM i_swapclient as install_stage
|
||||
|
||||
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=dash --withoutcoins=particl && \
|
||||
find /coin_bin -name *.tar.gz -delete
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
COPY --from=install_stage /coin_bin .
|
||||
|
||||
ENV DASH_DATA /data
|
||||
|
||||
RUN groupadd -r dash && useradd -r -m -g dash dash \
|
||||
&& apt-get update \
|
||||
&& apt-get install -qq --no-install-recommends gosu \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& mkdir "$DASH_DATA" \
|
||||
&& chown -R dash:dash "$DASH_DATA" \
|
||||
&& ln -sfn "$DASH_DATA" /home/dash/.dash \
|
||||
&& chown -h dash:dash /home/dash/.dash
|
||||
VOLUME /data
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
EXPOSE 9999 9998
|
||||
CMD ["/dash/dashd", "--datadir=/data"]
|
||||
11
docker/production/dash/entrypoint.sh
Executable file
11
docker/production/dash/entrypoint.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [[ "$1" == "dash-cli" || "$1" == "dash-tx" || "$1" == "dashd" || "$1" == "test_dash" ]]; then
|
||||
mkdir -p "$DASH_DATA"
|
||||
|
||||
chown -h dash:dash /home/dash/.dash
|
||||
exec gosu dash "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user