Skip to content

Added OCI labels to dockerfile #3977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@

FROM --platform=linux/amd64 python:3.12-slim-bookworm

# OCI Labels
LABEL org.opencontainers.image.title="scancode toolkit"
LABEL org.opencontainers.image.description="scancode toolkit detects licenses,copyrights,dependecies by scanning code to discover and inventory open source and third-party packages used in your code"
LABEL org.opencontainers.image.source="https://github.com/nexB/scancode-toolkit"
LABEL org.opencontainers.image.documentation="https://scancode-toolkit.readthedocs.io/"
LABEL org.opencontainers.image.authors=" https://github.com/aboutcode-org/scancode-toolkit"
LABEL org.opencontainers.image.version="v32.3.0"
LABEL org.opencontainers.image.vendor="nexB Inc."
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.ref.name="latest"


# Python settings: Force unbuffered stdout and stderr (i.e. they are flushed to terminal immediately)
ENV PYTHONUNBUFFERED 1
# Python settings: do not write pyc files
Expand Down