mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 17:57:44 +08:00
22 lines
389 B
Docker
22 lines
389 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
|
||
|
|
||
|
WORKDIR /root/
|
||
|
|
||
|
COPY --from=builder /go/src/github.com/rclone/rclone/rclone .
|
||
|
|
||
|
ENTRYPOINT [ "./rclone" ]
|