-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 803 Bytes
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
FROM louislam/uptime-kuma:2.1.3
USER root
RUN apt update && \
apt --yes --no-install-recommends install procps jq git restic netcat-openbsd patch && \
rm -rf /var/lib/apt/lists/* && \
apt --yes autoremove
RUN restic self-update
# Copy and apply patch to prepend hostname to notifications
COPY monitor.js.patch /app/monitor.js.patch
RUN patch /app/server/model/monitor.js < /app/monitor.js.patch
# Copy Replicator Kuma Stuff
COPY src /app/replicator-kuma
RUN cd /app/replicator-kuma; npm install
COPY replicator-snapshots.sh replicator-snapshots.sh
COPY replicator-functions.sh replicator-functions.sh
RUN chmod +x /app/replicator-snapshots.sh
RUN mkdir /replicator_kuma
ENTRYPOINT []
CMD ["/app/replicator-snapshots.sh"]
# export this with name replicator-kuma for docker compose file