From 2358d070e9cf1037dc04b6c1426c5cf4e6c4e7a6 Mon Sep 17 00:00:00 2001 From: Seungjin Kim Date: Mon, 05 Jan 2026 13:29:28 +0900 Subject: [PATCH] Containerfile instead of Dockerfile --- Containerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..a26deef 100644 --- /dev/null +++ b/Containerfile @@ -1,0 +1,20 @@ +### Compile Stage + +FROM docker.io/rust:latest AS builder +WORKDIR /usr/src/gitore +COPY . . +RUN apt-get update && apt-get install -y librocksdb9.1 librocksdb-dev llvm llvm-dev clang libclang-dev && \ + cargo install --path . + +### Release Stage + +FROM docker.io/debian:latest +COPY --from=builder /usr/local/cargo/bin/gitore /usr/local/bin/gitore +RUN apt-get update \ + && apt-get install -y --no-install-recommends git ca-certificates \ + && apt-get clean \ + && rm -rf \ + /var/lib/apt/lists/* \ + /var/cache/apt/* \ + /var/log/apt/* +ENTRYPOINT ["/usr/local/bin/gitore"] -- gitore 0.2.3