Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Fix Dockerfile [skip ci] (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabijanC authored Mar 24, 2022
1 parent f17e2a8 commit 4b675ea
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4b675ea

Please sign in to comment.