hetzner-storagebox-exporter/Dockerfile
Varakh f4b0c1d36a
All checks were successful
continuous-integration/drone/push Build is passing
Initial adapted version
2023-03-24 00:51:53 +01:00

20 lines
739 B
Docker

FROM alpine:3
LABEL maintainer="Varakh <varakh@varakh.de>" \
description="hetzner-storagebox-exporter" \
org.opencontainers.image.authors="Varakh" \
org.opencontainers.image.revision="${REVISION}" \
org.opencontainers.image.vendor="Varakh" \
org.opencontainers.image.title="hetzner-storagebox-exporter" \
org.opencontainers.image.description="hetzner-storagebox-exporter" \
org.opencontainers.image.base.name="alpine:3" \
org.opencontainers.artifact.created=${CREATED} \
org.opencontainers.image.source=${SOURCE_URL}
RUN apk add --no-cache nmap-ncat openssl coreutils openssh
ADD check-storage.sh /check-storage.sh
ADD header.sh /header.sh
EXPOSE 80
CMD nc -lk -p 80 -e /header.sh /check-storage.sh