FROM rust:latest AS rust-build USER root WORKDIR /usr/src COPY ./fuse-test/fuse-mount ./fuse-mount COPY ./src ./acid-store/src COPY ./Cargo.toml ./acid-store/Cargo.toml RUN apt-get -yq update RUN apt-get -yq install libfuse3-dev libacl1-dev pkg-config RUN cargo install --path ./fuse-mount FROM yujunz/secfs.test COPY ./fuse-test/fstest.patch ./fstest/fstest-acid-store.patch COPY ./fuse-test/fstest.sh ./fstest.sh COPY ./fuse-test/fsx.sh ./fsx.sh COPY --from=rust-build /usr/local/cargo/bin/fuse-mount ./fuse-mount RUN apt-get -yq install fuse3 acl bc git RUN git apply ./fstest/fstest-acid-store.patch