mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
8d55367a6a
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
23 lines
439 B
Docker
23 lines
439 B
Docker
FROM golang AS builder
|
|
|
|
COPY . /go/src/github.com/rclone/rclone/
|
|
WORKDIR /go/src/github.com/rclone/rclone/
|
|
|
|
RUN \
|
|
CGO_ENABLED=0 \
|
|
make
|
|
RUN ./rclone version
|
|
|
|
# Begin final image
|
|
FROM alpine:latest
|
|
|
|
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/
|
|
|
|
ENTRYPOINT [ "rclone" ]
|
|
|
|
WORKDIR /data
|
|
ENV XDG_CONFIG_HOME=/config
|