added image labels

This commit is contained in:
Tamás Gérczei 2021-01-13 21:22:20 +01:00
parent 600c2c3c64
commit 5511a6bc71
Signed by: tgerczei
GPG Key ID: 5B59A7760597B1A1
2 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,18 @@ RUN apk --update --no-cache add build-base && \
find /tmp/wheels -type f -name '*.whl' | xargs -I{} cp -v {} /wheels/
FROM python:3.7-alpine
LABEL org.opencontainers.image.title="py-air-control-exporter"
LABEL org.opencontainers.image.description="Exports Prometheus metrics from Philips smart air purifier devices."
LABEL org.opencontainers.image.version="0.3.0"
LABEL org.opencontainers.image.url=""
LABEL org.opencontainers.image.authors="Tamás Gérczei <>"
LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.source=""
LABEL org.opencontainers.image.vendor="Gérczei Tamás E.V."
COPY --from=builder /wheels /packages
RUN python -m pip install --no-cache-dir --no-index --find-links=packages/ \

hooks/build Normal file
View File

@ -0,0 +1,2 @@
docker build --build-arg BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) -t $IMAGE_NAME .