-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 923 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 923 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
27
28
FROM python:3.14-alpine
LABEL org.container.author="https://codeberg.org/jack-mil/ip-notify"
# Latest releases available at https://github.com/aptible/supercronic/releases
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.44/supercronic-linux-amd64 \
SUPERCRONIC_SHA1SUM=6eb0a8e1e6673675dc67668c1a9b6409f79c37bc \
SUPERCRONIC=supercronic-linux-amd64
RUN apk add --no-cache ca-certificates curl tzdata
RUN curl -fsSLO "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
WORKDIR /app
COPY --chmod=755 entrypoint.sh .
COPY ip_notify.py .
ENV EMBED_COLOR="f1c40f" \
IP_CACHE="/data/ip" \
LOG_FILE="/data/ip-notify.log" \
SCHEDULE="*/30 * * * *"
ENTRYPOINT ["./entrypoint.sh"]