Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- .github/actions/smoke-docker-image/action.yml
- .github/workflows/docker.yaml
- .github/workflows/publish.yaml
- tests/data/jsonschema/simple_string.json
pull_request:
branches: [main]
paths:
- Dockerfile
- .github/actions/smoke-docker-image/action.yml
- .github/workflows/docker.yaml
- .github/workflows/publish.yaml
- tests/data/jsonschema/simple_string.json
workflow_dispatch:

concurrency:
Expand Down
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ RUN test -n "${VERSION}" \

FROM python:3.14.2-slim-bookworm

LABEL maintainer="Koudai Aono <koxudaxi@gmail.com>"
ARG VERSION

LABEL maintainer="Koudai Aono <koxudaxi@gmail.com>" \
org.opencontainers.image.description="Generate Python data models from schema definitions" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/koxudaxi/datamodel-code-generator" \
org.opencontainers.image.title="datamodel-code-generator" \
org.opencontainers.image.version="${VERSION}"

ENV VIRTUAL_ENV=/opt/datamodel-code-generator
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
Expand Down
Loading