S3-Mounter/Dockerfile

33 lines
711 B
Docker
Raw Permalink Normal View History

2023-08-04 15:47:28 +00:00
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 \
cmake \
libfuse-dev && \
2023-08-04 15:47:28 +00:00
apt clean all
CMD [ "/mount-s3" ]