generated from Start9Labs/hello-world-startos
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
30 lines (23 loc) · 961 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ghcr.io/sethforprivacy/simple-monerod:v0.18.3.2
USER root
RUN apk update
RUN apk upgrade
RUN apk add curl wget sudo bash tini yq
# Add entrypoint and healthchecks
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
ADD ./scripts/creds-rpc.sh /usr/local/bin/creds-rpc.sh
ADD ./scripts/check-rpc.sh /usr/local/bin/check-rpc.sh
ADD ./scripts/check-sync.sh /usr/local/bin/check-sync.sh
RUN chmod a+x /usr/local/bin/*.sh
#Change default monero UID and GID, disable user's home and shell
RUN sed -i "s|monero:x:1000:1000:Linux User,,,:/home/monero:/bin/bash|monero:x:302340:302340:Monero:/dev/null:/sbin/nologin|" /etc/passwd
RUN sed -i "s/^\(monero:x\):1000:$/\1:302340:/" /etc/group
# # Add config file for monerod
COPY ./assets/monero.conf.template /root/
# # Expose p2p, unrestricted RPC, ZMQ, and restricted RPC ports
#EXPOSE 18080
EXPOSE 18081
#EXPOSE 18082
EXPOSE 18089
# Start monerod
ENTRYPOINT ["/usr/local/bin/docker_entrypoint.sh"]