From 1dc9947d2affa3a23e3ae832c97ac59b723b4783 Mon Sep 17 00:00:00 2001 From: David Auer Date: Sat, 28 Jun 2025 17:47:48 +0200 Subject: [PATCH] Fix missing labels in Docker image In a multi stage Docker build, the LABEL commands need to be applied in the final stage. --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0344f4..716a371 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,5 @@ FROM docker.io/library/golang:1.23-bookworm AS build -# Set some labels -# io.containers.autoupdate label will instruct podman to reach out to the corres -# corresponding registry to check if the image has been updated. If an image -# must be updated, Podman pulls it down and restarts the systemd unit executing -# the container. See podman-auto-update(1) for more details, or -# https://docs.podman.io/en/latest/markdown/podman-auto-update.1.html -LABEL io.containers.autoupdate=registry -LABEL org.opencontainers.image.authors="anti-censorship-team@lists.torproject.org" - RUN apt-get update && apt-get install -y tor-geoipdb ADD . /app @@ -25,3 +16,12 @@ COPY --from=build /usr/share/tor/geoip* /usr/share/tor/ COPY --from=build /app/proxy/proxy /bin/proxy ENTRYPOINT [ "/bin/proxy" ] + +# Set some labels +# io.containers.autoupdate label will instruct podman to reach out to the +# corresponding registry to check if the image has been updated. If an image +# must be updated, Podman pulls it down and restarts the systemd unit executing +# the container. See podman-auto-update(1) for more details, or +# https://docs.podman.io/en/latest/markdown/podman-auto-update.1.html +LABEL io.containers.autoupdate=registry +LABEL org.opencontainers.image.authors="anti-censorship-team@lists.torproject.org"