diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-17 20:02:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-17 20:02:49 +0200 |
commit | 73d7bab8844bb21c7a9143c30800c2d11d411e42 (patch) | |
tree | 955290bd2bded56b534738d6320216fbeeb708cb /crates/typologies/Dockerfile | |
parent | 725739985d853b07d73fa7fcd6db1f2f1b0000b6 (diff) | |
download | warden-73d7bab8844bb21c7a9143c30800c2d11d411e42.tar.bz2 warden-73d7bab8844bb21c7a9143c30800c2d11d411e42.zip |
feat: typology processor (#8)
Diffstat (limited to 'crates/typologies/Dockerfile')
-rw-r--r-- | crates/typologies/Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/crates/typologies/Dockerfile b/crates/typologies/Dockerfile new file mode 100644 index 0000000..61bb2e2 --- /dev/null +++ b/crates/typologies/Dockerfile @@ -0,0 +1,26 @@ +FROM rust:1.89.0-slim AS builder + +ENV SQLX_OFFLINE=true + +RUN rustup target add x86_64-unknown-linux-musl +RUN apt update && apt install -y musl-tools musl-dev protobuf-compiler curl +RUN update-ca-certificates + +WORKDIR /usr/src/app + +RUN mkdir -p crates + +COPY ./crates/typologies crates/typologies +COPY ./lib lib +COPY ./Cargo.toml . +COPY ./Cargo.lock . + +RUN cargo fetch + +COPY ./proto proto + +RUN cargo build --target x86_64-unknown-linux-musl --release + +FROM scratch +COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/warden-typologies ./ +CMD [ "./warden-typologies" ] |