2019-08-29 12:04:57 +02:00
|
|
|
FROM golang AS builder
|
|
|
|
|
|
|
|
COPY . /go/src/github.com/rclone/rclone/
|
|
|
|
WORKDIR /go/src/github.com/rclone/rclone/
|
|
|
|
|
|
|
|
RUN make quicktest
|
|
|
|
RUN \
|
2020-04-11 20:12:10 +02:00
|
|
|
CGO_ENABLED=0 \
|
2019-08-29 12:04:57 +02:00
|
|
|
make
|
|
|
|
RUN ./rclone version
|
|
|
|
|
|
|
|
# Begin final image
|
|
|
|
FROM alpine:latest
|
|
|
|
|
2019-09-17 07:15:48 +02:00
|
|
|
RUN apk --no-cache add ca-certificates fuse
|
2019-08-29 12:04:57 +02:00
|
|
|
|
2019-09-17 07:15:48 +02:00
|
|
|
COPY --from=builder /go/src/github.com/rclone/rclone/rclone /usr/local/bin/
|
2019-08-29 12:04:57 +02:00
|
|
|
|
2019-09-17 07:15:48 +02:00
|
|
|
ENTRYPOINT [ "rclone" ]
|
2019-08-29 12:04:57 +02:00
|
|
|
|
2019-09-17 07:15:48 +02:00
|
|
|
WORKDIR /data
|
|
|
|
ENV XDG_CONFIG_HOME=/config
|