Files
dependabot[bot] d5a5746f17 Bump alpine from 3.23 to 3.24 (#799)
Bumps alpine from 3.23 to 3.24.

---
updated-dependencies:
- dependency-name: alpine
  dependency-version: '3.24'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-16 08:02:45 +02:00

23 lines
454 B
Docker

# Copyright 2022 - offen.software <hioffen@posteo.de>
# SPDX-License-Identifier: MPL-2.0
FROM golang:1.26-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
WORKDIR /app/cmd/backup
RUN go build -o backup .
FROM alpine:3.24
WORKDIR /root
RUN apk add --no-cache ca-certificates tzdata && \
chmod a+rw /var/lock
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup
ENTRYPOINT ["/usr/bin/backup", "-foreground"]