mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-12-22 17:10:22 +01:00
c54a5bef5f
* Bump golang from 1.22-alpine to 1.23-alpine Bumps golang from 1.22-alpine to 1.23-alpine. --- updated-dependencies: - dependency-name: golang dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Use Go 1.23 throughout * Update golangci-lint * Fix complaint raised by linter --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Frederik Ring <frederik.ring@gmail.com>
22 lines
425 B
Docker
22 lines
425 B
Docker
# Copyright 2022 - offen.software <hioffen@posteo.de>
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
FROM golang:1.23-alpine as builder
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go mod download
|
|
WORKDIR /app/cmd/backup
|
|
RUN go build -o backup .
|
|
|
|
FROM alpine:3.20
|
|
|
|
WORKDIR /root
|
|
|
|
RUN apk add --no-cache ca-certificates && \
|
|
chmod a+rw /var/lock
|
|
|
|
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup
|
|
|
|
ENTRYPOINT ["/usr/bin/backup", "-foreground"]
|