We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22943b0 commit 37e3de3Copy full SHA for 37e3de3
1 file changed
Dockerfile
@@ -1,7 +1,21 @@
1
-FROM python:3.11-alpine
2
-
3
ARG OPENAPI_SPEC_VALIDATOR_VERSION=0.6.0a1
4
5
-RUN pip install --no-cache-dir --pre openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION}
+FROM python:3.11.4-alpine as builder
+
+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
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
20
21
ENTRYPOINT ["openapi-spec-validator"]
0 commit comments