Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (16 sloc)
523 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 tzdata && \ | |
echo "user_allow_other" >> /etc/fuse.conf | |
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 | |
ENV XDG_CONFIG_HOME=/config |