18 lines
460 B
Docker
18 lines
460 B
Docker
# Build dpinger from Github
|
|
FROM alpine:latest AS build
|
|
|
|
RUN apk --no-cache add clang gcc git libc-dev make && \
|
|
cd tmp && \
|
|
git clone --depth 1 https://github.com/dennypage/dpinger.git && \
|
|
cd dpinger && \
|
|
make all
|
|
|
|
# Build final Docker image
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add curl
|
|
COPY --from=build /tmp/dpinger/dpinger /usr/local/bin/
|
|
COPY ntfy.sh /usr/local/bin/
|
|
|
|
ENTRYPOINT ["/usr/local/bin/dpinger","-f", "-C", "/usr/local/bin/ntfy.sh"]
|