Skip to content

Commit

Permalink
revert monero to root
Browse files Browse the repository at this point in the history
  • Loading branch information
Kukks committed Oct 10, 2023
1 parent 1052e9d commit 596dd76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
7 changes: 3 additions & 4 deletions Monero/0.18.2.2/linuxamd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
8 changes: 3 additions & 5 deletions Monero/0.18.2.2/linuxarm32v7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
9 changes: 3 additions & 6 deletions Monero/0.18.2.2/linuxarm64v8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 596dd76

Please sign in to comment.