-
-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (13 loc) · 603 Bytes
/
Dockerfile
File metadata and controls
21 lines (13 loc) · 603 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG OPENAPI_SPEC_VALIDATOR_VERSION=0.8.4
FROM python:3.14.3-alpine as builder
ARG OPENAPI_SPEC_VALIDATOR_VERSION
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN apk add --no-cache cargo
RUN python -m pip wheel --wheel-dir /wheels openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION}
FROM python:3.14.3-alpine
ARG OPENAPI_SPEC_VALIDATOR_VERSION
COPY --from=builder /wheels /wheels
RUN apk add --no-cache libgcc
RUN pip install --no-cache-dir --pre --find-links /wheels openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION} && \
rm -r /wheels
ENTRYPOINT ["openapi-spec-validator"]