summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorTheFox0x7 <thefox0x7@gmail.com>2024-05-19 16:20:33 +0200
committerearl-warren <earl-warren@noreply.code.forgejo.org>2024-05-19 16:20:33 +0200
commit15e328a8a53be37ff957400f9e0e39ee32ef6aa4 (patch)
treed705a067a5731e4f89bf123d2ec7ef622d0625ea /Dockerfile
parentMerge pull request 'Bump build action to v5' (#197) from thefox/update-build-... (diff)
downloadforgejo-runner-15e328a8a53be37ff957400f9e0e39ee32ef6aa4.tar.xz
forgejo-runner-15e328a8a53be37ff957400f9e0e39ee32ef6aa4.zip
Add opencontainer labels to container (#195)
Closes: forgejo/runner#162 Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/195 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index ce36d7a..95136e2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,12 +20,22 @@ WORKDIR /srv
RUN make clean && make build
FROM docker.io/library/alpine:3.18
-LABEL maintainer="contact@forgejo.org"
-
+ARG RELEASE_VERSION
RUN apk add --no-cache git bash
COPY --from=build-env /srv/forgejo-runner /bin/forgejo-runner
+LABEL maintainer="contact@forgejo.org" \
+ org.opencontainers.image.authors="Forgejo" \
+ org.opencontainers.image.url="https://forgejo.org" \
+ org.opencontainers.image.documentation="https://forgejo.org/docs/latest/admin/actions/#forgejo-runner" \
+ org.opencontainers.image.source="https://code.forgejo.org/forgejo/runner" \
+ org.opencontainers.image.version="${RELEASE_VERSION}" \
+ org.opencontainers.image.vendor="Forgejo" \
+ org.opencontainers.image.licenses="MIT" \
+ org.opencontainers.image.title="Forgejo Runner" \
+ org.opencontainers.image.description="A runner for Forgejo Actions."
+
ENV HOME=/data
USER 1000:1000