feat(asb): Add Dockerfile

This commit is contained in:
Binarybaron 2024-11-11 16:02:55 +01:00
parent 050d4f5f48
commit 44fafc792e

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
# This Dockerfile builds the asb binary
FROM rust:1.79-slim AS builder
WORKDIR /build
RUN apt-get update
RUN apt-get install -y git clang cmake libsnappy-dev
COPY . .
WORKDIR /build/swap
RUN cargo build --release --bin=asb
FROM debian:bookworm-slim
WORKDIR /data
COPY --from=builder /build/target/release/asb /bin/asb
ENTRYPOINT ["asb"]