commit 714f9c09dd33925800801cea2e9c21bb0948b965 Author: Tanguy Herbron Date: Fri Aug 4 17:47:28 2023 +0200 feat(container): Add Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5337714 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM debian:12.1 as builder + +RUN apt update && \ + apt install -y \ + fuse \ + libfuse-dev \ + cmake \ + clang \ + git \ + pkg-config \ + curl && \ + apt clean all + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ + . "$HOME/.cargo/env" + +RUN git clone --recurse-submodules https://github.com/awslabs/mountpoint-s3.git && \ + . "$HOME/.cargo/env" && \ + cd mountpoint-s3 && \ + cargo build --release + + +FROM debian:12.1 as release +COPY --from=builder /mountpoint-s3/target/release/mount-s3 /mount-s3 + +RUN apt update && \ + apt install -y libfuse-dev && \ + apt clean all + +CMD [ "/mount-s3" ]