Containerfile instead of Dockerfile
Diff
Containerfile | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
@@ -1,0 +1,20 @@
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 .
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"]