Merge pull request 'Připnout image k repozitáři přes OCI label' (#17) from agents/claude/oci-labely into main
testy / pytest (3.11) (push) Successful in 0s
testy / pytest (3.12) (push) Successful in 0s
testy / pytest (3.13) (push) Successful in 1s
testy / pytest (3.14) (push) Successful in 1s

Reviewed-on: #17
This commit was merged in pull request #17.
This commit is contained in:
david-spacil committed 2026-08-23 22:44:30 +02:00
commit 01dc7a0504
1 file changed
+9
+9
View File
@@ -13,6 +13,15 @@ FROM python:3.11-slim
# Verze se jinak nemá kde vzít — v image není git ani zabalená binárka.
ARG VERSION=neznámá
# Podle image.source si Gitea připne balíček k repozitáři. Bez toho labelu
# image sice existuje, ale visí jen pod uživatelem a záložka Packages
# u repozitáře zůstane prázdná.
LABEL org.opencontainers.image.source="https://gitea.spacilovi.eu/david-spacil/dice-counter" \
org.opencontainers.image.url="https://gitea.spacilovi.eu/david-spacil/dice-counter" \
org.opencontainers.image.title="dice-counter" \
org.opencontainers.image.description="Počitadlo kostek: telefon zapisuje skóre, notebook ukazuje zápisník" \
org.opencontainers.image.version="$VERSION"
RUN useradd --system --uid 1000 --home-dir /app --shell /usr/sbin/nologin dice-counter
WORKDIR /app