Initial commit

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2026-09-13 14:19:23 +01:00
parent e2842caa7c
commit 7c670c3d82
11 changed files with 828 additions and 31 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM golang:1.27-alpine AS builder
WORKDIR /app/
ADD go.mod go.sum ./
RUN go mod download
ADD . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o backup-to-nextcloud main.go
FROM golang:1.27-alpine
WORKDIR /app/
COPY --from=builder /app/backup-to-nextcloud /app/backup-to-nextcloud
ENTRYPOINT ["/app/backup-to-nextcloud"]