autorestic/Dockerfile
2022-03-10 18:28:46 +03:00

13 lines
235 B
Docker

FROM golang:1.17-alpine as builder
WORKDIR /app
COPY go.* .
RUN go mod download
COPY . .
RUN go build
FROM alpine
RUN apk add --no-cache restic rclone bash
COPY --from=builder /app/autorestic /usr/bin/autorestic
CMD [ "autorestic" ]