From 596dd76375970a75ea5ac0c3bfaf12ee311977cb Mon Sep 17 00:00:00 2001 From: Kukks Date: Tue, 10 Oct 2023 11:26:02 +0200 Subject: [PATCH] revert monero to root --- Monero/0.18.2.2/linuxamd64.Dockerfile | 7 +++---- Monero/0.18.2.2/linuxarm32v7.Dockerfile | 8 +++----- Monero/0.18.2.2/linuxarm64v8.Dockerfile | 9 +++------ 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/Monero/0.18.2.2/linuxamd64.Dockerfile b/Monero/0.18.2.2/linuxamd64.Dockerfile index 874f2ef..db1bfb6 100644 --- a/Monero/0.18.2.2/linuxamd64.Dockerfile +++ b/Monero/0.18.2.2/linuxamd64.Dockerfile @@ -32,10 +32,10 @@ COPY ./scripts /scripts/ RUN find /scripts/ -type f -print0 | xargs -0 chmod a+x # Create monero user -RUN addgroup --system --gid 101 monero && \ - adduser --system --disabled-password --uid 101 --gid 101 monero && \ +RUN adduser --system --group --disabled-password monero && \ mkdir -p /wallet /home/monero/.bitmonero && \ chown -R monero:monero /home/monero/.bitmonero && \ + chown -R monero:monero /home/monero && \ chown -R monero:monero /wallet # Specify necessary volumes @@ -47,10 +47,9 @@ EXPOSE 18080 EXPOSE 18081 EXPOSE 18082 -# Set HOME environment variable -ENV HOME /home/monero # Switch to user monero USER monero +ENV HOME /home/monero # Add HEALTHCHECK against get_info endpoint HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:18081/get_info || exit 1 diff --git a/Monero/0.18.2.2/linuxarm32v7.Dockerfile b/Monero/0.18.2.2/linuxarm32v7.Dockerfile index e34119d..b8d1e08 100644 --- a/Monero/0.18.2.2/linuxarm32v7.Dockerfile +++ b/Monero/0.18.2.2/linuxarm32v7.Dockerfile @@ -32,10 +32,10 @@ COPY ./scripts /scripts/ RUN find /scripts/ -type f -print0 | xargs -0 chmod a+x # Create monero user -RUN addgroup --system --gid 101 monero && \ - adduser --system --disabled-password --uid 101 --gid 101 monero && \ +RUN adduser --system --group --disabled-password monero && \ mkdir -p /wallet /home/monero/.bitmonero && \ chown -R monero:monero /home/monero/.bitmonero && \ + chown -R monero:monero /home/monero && \ chown -R monero:monero /wallet # Specify necessary volumes @@ -47,11 +47,9 @@ EXPOSE 18080 EXPOSE 18081 EXPOSE 18082 -# Set HOME environment variable -ENV HOME /home/monero - # Switch to user monero USER monero +ENV HOME /home/monero # Add HEALTHCHECK against get_info endpoint HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:18081/get_info || exit 1 diff --git a/Monero/0.18.2.2/linuxarm64v8.Dockerfile b/Monero/0.18.2.2/linuxarm64v8.Dockerfile index e6a5654..fd4e338 100644 --- a/Monero/0.18.2.2/linuxarm64v8.Dockerfile +++ b/Monero/0.18.2.2/linuxarm64v8.Dockerfile @@ -32,10 +32,10 @@ COPY ./scripts /scripts/ RUN find /scripts/ -type f -print0 | xargs -0 chmod a+x # Create monero user -RUN addgroup --system --gid 101 monero && \ - adduser --system --disabled-password --uid 101 --gid 101 monero && \ +RUN adduser --system --group --disabled-password monero && \ mkdir -p /wallet /home/monero/.bitmonero && \ chown -R monero:monero /home/monero/.bitmonero && \ + chown -R monero:monero /home/monero && \ chown -R monero:monero /wallet # Specify necessary volumes @@ -46,12 +46,9 @@ VOLUME /wallet EXPOSE 18080 EXPOSE 18081 EXPOSE 18082 - -# Set HOME environment variable -ENV HOME /home/monero - # Switch to user monero USER monero +ENV HOME /home/monero # Add HEALTHCHECK against get_info endpoint HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:18081/get_info || exit 1