Skip to content

Commit

Permalink
Temporary commit with dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jknyspel-catalogicsoftware committed Aug 7, 2024
1 parent 2856f45 commit 614fa87
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM rust:1.79.0 AS yara_builder_base

RUN cargo install cargo-c
RUN apt-get update && \
apt-get install -y libc6-dev

FROM yara_builder_base AS yara_builder

WORKDIR /build
COPY . .
RUN cargo cbuild -p yara-x-capi --release --target x86_64-unknown-linux-gnu --target-dir /build/artifacts

RUN mkdir -p /out
RUN cp -r /build/artifacts/x86_64-unknown-linux-gnu/release/libyara_x_capi.so /out/

0 comments on commit 614fa87

Please sign in to comment.