build: add an rclone user to the Docker image but don't use it by default

partially addresses #4831

Co-authored-by: cynful <cynful@users.noreply.github.com>
This commit is contained in:
cynthia kwok 2021-02-11 09:45:44 -08:00 committed by GitHub
parent 2d7afe8690
commit c0c2505977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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