build: set user_allow_other in /etc/fuse.conf in the Docker image

This allows non root mounts to use the --allow-other flag

See: https://forum.rclone.org/t/trying-utilize-docker-for-the-first-time-having-some-issues-with-an-rclone-mount-user-allow-other-error-etc-fuse-conf-has-been-updated-to-allow/16393
This commit is contained in:
Nick Craig-Wood 2020-06-01 21:31:35 +01:00
parent 187ee62e3d
commit 8d55367a6a
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ RUN ./rclone version
# Begin final image
FROM alpine:latest
RUN apk --no-cache add ca-certificates fuse
RUN apk --no-cache add ca-certificates fuse && \
echo "user_allow_other" >> /etc/fuse.conf
COPY --from=builder /go/src/github.com/rclone/rclone/rclone /usr/local/bin/