mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
27 lines
758 B
Docker
27 lines
758 B
Docker
|
###
|
||
|
# The directory of the Dockerfile should contain your 'hostname' and 'private_key' files.
|
||
|
# In the docker-compose.yml file you can pass the ONION_ADDRESS referenced below.
|
||
|
###
|
||
|
|
||
|
# pull base image
|
||
|
FROM openjdk:8-jdk
|
||
|
|
||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
|
vim \
|
||
|
tor \
|
||
|
fakeroot \
|
||
|
sudo \
|
||
|
openjfx && rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
RUN git clone https://github.com/bisq-network/pricenode.git
|
||
|
WORKDIR /pricenode/
|
||
|
RUN ./gradlew assemble
|
||
|
|
||
|
COPY loop.sh start_node.sh start_tor.sh ./
|
||
|
COPY hostname private_key /var/lib/tor/
|
||
|
COPY torrc /etc/tor/
|
||
|
RUN chmod +x *.sh && chown debian-tor:debian-tor /etc/tor/torrc /var/lib/tor/hostname /var/lib/tor/private_key
|
||
|
|
||
|
CMD ./start_tor.sh && ./start_node.sh
|
||
|
#CMD tail -f /dev/null
|