diff --git a/Dockerfile b/Dockerfile index 2c16a5a2c..8008c6ec6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,18 +6,22 @@ RUN apk add gmp-dev g++ gcc libffi-dev RUN pip3 install poetry +RUN poetry build -f wheel + RUN poetry export -f requirements.txt --without-hashes > requirements.txt -RUN pip3 wheel --no-cache-dir --no-deps --wheel-dir /wheels -r requirements.txt starknet-devnet +RUN pip3 wheel --no-cache-dir --no-deps --wheel-dir /wheels -r requirements.txt FROM python:3.7.12-alpine3.15 -RUN apk add --no-cache libgmpxx +RUN apk add --no-cache libgmpxx + +COPY --from=builder /dist/*.whl /wheels/ COPY --from=builder /wheels /wheels -RUN pip install --no-cache /wheels/* +RUN pip3 install --no-cache /wheels/* RUN rm -rf /wheels