mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-04 01:30:39 +00:00
docker image
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal 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" ]
|
Reference in New Issue
Block a user