Skip to content

Commit d82724a

Browse files
bakerboy448claude
andcommitted
feat: add OCI image labels to Dockerfile
- Add Open Container Initiative (OCI) standard labels - Include build-time ARGs for dynamic label values - Add metadata for source, version, vendor, and license - Prepare for ghcr.io container registry publishing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a76237c commit d82724a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
FROM python:3.11-slim
22

3+
# OCI Image Spec Annotations
4+
ARG BUILD_DATE
5+
ARG VCS_REF
6+
ARG VERSION
7+
LABEL org.opencontainers.image.created=$BUILD_DATE \
8+
org.opencontainers.image.url="https://github.com/$GITHUB_REPOSITORY" \
9+
org.opencontainers.image.source="https://github.com/$GITHUB_REPOSITORY" \
10+
org.opencontainers.image.version=$VERSION \
11+
org.opencontainers.image.revision=$VCS_REF \
12+
org.opencontainers.image.vendor="RedditModLog" \
13+
org.opencontainers.image.title="Reddit Moderation Log Publisher" \
14+
org.opencontainers.image.description="Automated Reddit moderation log scraper and wiki publisher" \
15+
org.opencontainers.image.licenses="MIT"
16+
317
# Set working directory
418
WORKDIR /app
519

0 commit comments

Comments
 (0)