update Dockerfile

This commit is contained in:
wowario 2023-02-01 10:20:21 +03:00
parent 0fd82de0be
commit 6fee906b1c
No known key found for this signature in database
GPG Key ID: 793504B449C69220
1 changed files with 13 additions and 13 deletions

View File

@ -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"]