From c0c2505977d10ef31f8a0a49f622427a53a1f28c Mon Sep 17 00:00:00 2001 From: cynthia kwok Date: Thu, 11 Feb 2021 09:45:44 -0800 Subject: [PATCH] build: add an rclone user to the Docker image but don't use it by default partially addresses #4831 Co-authored-by: cynful --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9a4c49400..0a5cad385 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ RUN apk --no-cache add ca-certificates fuse tzdata && \ COPY --from=builder /go/src/github.com/rclone/rclone/rclone /usr/local/bin/ +RUN addgroup -g 1009 rclone && adduser -u 1009 -Ds /bin/sh -G rclone rclone + ENTRYPOINT [ "rclone" ] WORKDIR /data