Saving to storage.

New buildfile.
Storing backups in storage.
This commit is contained in:
rony5394
2026-04-09 15:32:54 +02:00
parent ec797025e5
commit 4a33358596
5 changed files with 103 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
FROM docker.io/library/golang:1.25.5-alpine AS builder
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.25.5-alpine AS builder
ARG TARGETARCH
WORKDIR /build
COPY go.mod go.sum ./
@@ -8,13 +9,13 @@ RUN go mod download
COPY . /build
RUN CGO_ENABLED=0 GOOS=linux go build -o /blazena
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /blazena
FROM docker.io/library/alpine:3.3
RUN apk add openssh rsync --no-cache
FROM docker.io/library/alpine:3.23
RUN apk add openssh rsync btrfs-progs --no-cache
COPY --from=builder /blazena /
COPY --from=builder --chmod=+x /blazena /
EXPOSE 1234
ENV MODE=invalid