whenfs
whenfs copied to clipboard
Add build instructions in Docker
Allows folks who have not gotten a local rust tool-chain installed but have docker to do a containerized compile.
Wouldn't be something like that easier with a Dockerfile ?
# Use the official Rust image as the base image
FROM rust:latest
# Set the working directory inside the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . .
# Update the package list and install de pendencies
RUN apt-get update && \
apt-get install -y libfuse3-dev
# Build the Rust project
RUN cargo build
# The final command to run the compiled binary
CMD ["./target/debug/when-fs"]
Perhaps, though that has a slightly different purpose and use.
The Dockerfile solution is to provide the ability to run it in a container, presumably through mounting the fuse socket.
My solution allows you to build within a container (without needing a working rust build chain setup) but then run the binary on the host directly.
Both have value though they serve different purposes.