first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:29:38 +03:00
commit 427856cd3a
176 changed files with 27613 additions and 0 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
# Building Stage
ARG RUST_VERSION=1.85
FROM rust:${RUST_VERSION}-slim-bookworm AS build
WORKDIR /app
COPY LICENSE LICENSE
RUN --mount=type=bind,source=doc,target=doc \
--mount=type=bind,source=src,target=src \
--mount=type=bind,source=crates,target=crates \
--mount=type=bind,source=Cargo.toml,target=Cargo.toml \
--mount=type=bind,source=Cargo.lock,target=Cargo.lock \
<<EOF
set -e
apt-get -y update && apt-get install -y --no-install-recommends pkg-config libssl-dev
cargo build --locked --release
cp target/release/bifrost /bifrost
EOF
# Final Stage
FROM debian:bookworm-slim AS final
COPY --from=build /bifrost /app/bifrost
RUN apt-get -y update && apt-get install -y --no-install-recommends libssl3 ca-certificates
WORKDIR /app
CMD ["/app/bifrost"]