1
1
dpinger-container/Dockerfile

22 lines
624 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
LABEL Description="This image is based on alpine:latest and is used run dpinger" \
Author="david@socialnerds.org" \
Version="0.1" \
License="MIT"
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"]