From b4554d526fc901c23d62681950791150cb3ce197 Mon Sep 17 00:00:00 2001 From: Divanshu Chauhan Date: Sat, 27 May 2023 02:06:58 +0530 Subject: [PATCH] docker: add labels --- Dockerfile | 7 +++++++ goreleaser.Dockerfile | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0dbbf08..926f00f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,3 +9,10 @@ RUN CGO_ENABLED=0 GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -o FROM alpine:3.18.0 COPY --from=builder /app/out/RestrictChannelRobot / CMD ["/RestrictChannelRobot"] + +LABEL org.opencontainers.image.authors="Divanshu Chauhan " +LABEL org.opencontainers.image.url="https://divkix.me" +LABEL org.opencontainers.image.source="https://github.com/divkix/RestrictChannelRobot" +LABEL org.opencontainers.image.title="Restrict Channel Robot" +LABEL org.opencontainers.image.description="Official Restrict Channel Bot Docker Image" +LABEL org.opencontainers.image.vendor="Divkix" diff --git a/goreleaser.Dockerfile b/goreleaser.Dockerfile index ab4661f..730bd39 100644 --- a/goreleaser.Dockerfile +++ b/goreleaser.Dockerfile @@ -1,3 +1,9 @@ FROM alpine:3.18.0 COPY restrictchannelrobot / CMD ["/restrictchannelrobot"] +LABEL org.opencontainers.image.authors="Divanshu Chauhan " +LABEL org.opencontainers.image.url="https://divkix.me" +LABEL org.opencontainers.image.source="https://github.com/divkix/RestrictChannelRobot" +LABEL org.opencontainers.image.title="Restrict Channel Robot" +LABEL org.opencontainers.image.description="Official Restrict Channel Bot Docker Image" +LABEL org.opencontainers.image.vendor="Divkix"