docker image

This commit is contained in:
2021-11-20 16:59:13 +01:00
parent c55e91b8ff
commit e94e7030fc
3 changed files with 50 additions and 4 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM golang:1.16-alpine as builder
WORKDIR /app
COPY go.* .
RUN go mod download
COPY . .
RUN go build
FROM alpine
RUN apk add --no-cache restic rclone
COPY --from=builder /app/autorestic /usr/bin/autorestic
CMD [ "autorestic" ]