diff --git a/Dockerfile b/Dockerfile index 9d97eb5..458f120 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM python:3.12-alpine AS builder -RUN apk add --no-cache make +RUN apk add --no-cache make jq WORKDIR /opt RUN pip install uv RUN uv venv @@ -9,3 +9,8 @@ WORKDIR /app COPY Makefile schema.yaml ./ COPY src src RUN source /opt/.venv/bin/activate && make all + +FROM alpine AS final + +WORKDIR /app +COPY --from=builder /app/combined.yaml . diff --git a/Makefile b/Makefile index b388fb8..2935cc1 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ validate: $(ENTRIES) # Validate each entry in `./src/instances` against the sche entry_id=$$(yq -r '.id' $$file) if [ "$$file_id" != "$$entry_id" ]; then echo " ✗ $$file_id != $$entry_id (entry ID and file name do not match)" + errored=true fi; output=$$(linkml-validate -s schema.yaml $$file 2>&1); status=$$? if [ $$status -ne 0 ]; then