File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1- FROM python:3.11-alpine
2-
31ARG OPENAPI_SPEC_VALIDATOR_VERSION=0.6.0a1
42
5- RUN pip install --no-cache-dir --pre openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION}
3+ FROM python:3.11.4-alpine as builder
4+
5+ ARG OPENAPI_SPEC_VALIDATOR_VERSION
6+
7+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
8+
9+ RUN apk add --no-cache cargo
10+ RUN python -m pip wheel --wheel-dir /wheels openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION}
11+
12+ FROM python:3.11.4-alpine
13+
14+ ARG OPENAPI_SPEC_VALIDATOR_VERSION
15+
16+ COPY --from=builder /wheels /wheels
17+ RUN apk add --no-cache libgcc
18+ RUN pip install --no-cache-dir --pre --find-links /wheels openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION} && \
19+ rm -r /wheels
620
721ENTRYPOINT ["openapi-spec-validator" ]
You can’t perform that action at this time.
0 commit comments