mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:54:44 +01:00
070a8bfcd8
- ref: https://forum.rclone.org/t/run-docker-container-in-userspace/11734/7 - enable userspace operation - enable Docker userspace mount exposed to the host - add more Docker image usage documentation
23 lines
433 B
Docker
23 lines
433 B
Docker
FROM golang AS builder
|
|
|
|
COPY . /go/src/github.com/rclone/rclone/
|
|
WORKDIR /go/src/github.com/rclone/rclone/
|
|
|
|
RUN make quicktest
|
|
RUN \
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
|
|
make
|
|
RUN ./rclone version
|
|
|
|
# Begin final image
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add ca-certificates fuse
|
|
|
|
COPY --from=builder /go/src/github.com/rclone/rclone/rclone /usr/local/bin/
|
|
|
|
ENTRYPOINT [ "rclone" ]
|
|
|
|
WORKDIR /data
|
|
ENV XDG_CONFIG_HOME=/config
|