mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 06:28:52 +00:00
update Dockerfile
This commit is contained in:
parent
0fd82de0be
commit
6fee906b1c
26
Dockerfile
26
Dockerfile
@ -41,26 +41,26 @@ RUN set -ex && \
|
|||||||
rm -rf /var/lib/apt
|
rm -rf /var/lib/apt
|
||||||
COPY --from=builder /src/build/x86_64-linux-gnu/release/bin /usr/local/bin/
|
COPY --from=builder /src/build/x86_64-linux-gnu/release/bin /usr/local/bin/
|
||||||
|
|
||||||
# Create monero user
|
# Create wownero user
|
||||||
RUN adduser --system --group --disabled-password monero && \
|
RUN adduser --system --group --disabled-password wownero && \
|
||||||
mkdir -p /wallet /home/monero/.bitmonero && \
|
mkdir -p /wallet /home/wownero/.wownero && \
|
||||||
chown -R monero:monero /home/monero/.bitmonero && \
|
chown -R wownero:wownero /home/wownero/.wownero && \
|
||||||
chown -R monero:monero /wallet
|
chown -R wownero:wownero /wallet
|
||||||
|
|
||||||
# Contains the blockchain
|
# Contains the blockchain
|
||||||
VOLUME /home/monero/.bitmonero
|
VOLUME /home/wownero/.wownero
|
||||||
|
|
||||||
# Generate your wallet via accessing the container and run:
|
# Generate your wallet via accessing the container and run:
|
||||||
# cd /wallet
|
# cd /wallet
|
||||||
# monero-wallet-cli
|
# wownero-wallet-cli
|
||||||
VOLUME /wallet
|
VOLUME /wallet
|
||||||
|
|
||||||
EXPOSE 18080
|
EXPOSE 34567
|
||||||
EXPOSE 18081
|
EXPOSE 34568
|
||||||
|
|
||||||
# switch to user monero
|
# switch to user wownero
|
||||||
USER monero
|
USER wownero
|
||||||
|
|
||||||
ENTRYPOINT ["monerod"]
|
ENTRYPOINT ["wownerod"]
|
||||||
CMD ["--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=18080", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=18081", "--non-interactive", "--confirm-external-bind"]
|
CMD ["--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=34567", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=34568", "--non-interactive", "--confirm-external-bind"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user