Skip to content

Commit

Permalink
chore: Cache cargo index in manylinux2014 docker image
Browse files Browse the repository at this point in the history
This is more of a convenience for developers. This saves a lot of time
when releasing a new version of Yari.
  • Loading branch information
MatejKastak committed Jan 10, 2024
1 parent 6c8b615 commit 4ddea35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile.manylinux2014
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ RUN cd ./yari-sys/yara \

COPY . /yari

# This is just to cache the cargo index so we don't have to update it from
# scratch every time which takes long time
RUN cargo update --dry-run

# An example how to build the Python wheel
# RUN cd yari-py \
# && YARI_USE_BUNDLED_BINDINGS=1 YARI_LIB_DIRS="/usr/x86_64-unknown-linux-gnu/lib/:/usr/lib/x86_64-linux-gnu/" maturin build

0 comments on commit 4ddea35

Please sign in to comment.