feat(container): Add Dockerfile
This commit is contained in:
commit
714f9c09dd
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@ -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" ]
|
Loading…
Reference in New Issue
Block a user