31 lines
685 B
Docker
31 lines
685 B
Docker
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" ]
|