Saving to storage.
New buildfile. Storing backups in storage.
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user