From 78bcd243843fc4b280e2bd10c52131dfd319d9e5 Mon Sep 17 00:00:00 2001 From: Comminutus Date: Sun, 1 Sep 2024 07:15:11 -0400 Subject: [PATCH] minor changes; updated README --- Containerfile | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index e550df0..f67e6fd 100644 --- a/Containerfile +++ b/Containerfile @@ -1,5 +1,5 @@ ######################################################################################################################## -# Configuration / Base Image +# Configuration ######################################################################################################################## # Core Config ARG monero_version=0.18.3.4 @@ -25,7 +25,6 @@ ARG dist_dir=$build_dir/dist ARG doc_dir=$build_dir/doc ARG hashes_file=hashes.txt ARG hashes_url=https://www.getmonero.org/downloads/$hashes_file -ARG data_dir=/var/lib/monero ######################################################################################################################## @@ -73,7 +72,7 @@ ARG dist_dir ports # Install binaries COPY --from=build $dist_dir /usr/local/bin -COPY --from=build $doc_dir /usr/local/share/doc/monero +COPY --from=build $doc_dir /usr/local/share/licenses/monero # Setup a volume for blockchain VOLUME /var/lib/monero @@ -83,3 +82,4 @@ EXPOSE $ports # Run entrypoint script ENTRYPOINT ["/usr/local/bin/monerod", "--data-dir", "/var/lib/monero"] +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"] diff --git a/README.md b/README.md index ab1cd4f..c54feed 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ When running the container image with Docker, Kubernetes, OpenShift, etc., mount _/var/lib/monero_. ### User/Group -Because the container uses Chainguard's image as a base, the `monerod` process is run as non-root. +Because the container uses Chainguard's image as a base, the `monerod` process is run as non-root. The username and group name the process runs as is `nonroot`. The UID and GID are set to 65532. ### Ports The container exposes the following ports: