Skip to content

Commit

Permalink
update base Docker image & deps & go
Browse files Browse the repository at this point in the history
  • Loading branch information
nxcc committed Dec 12, 2024
1 parent 2a13cf0 commit cb94373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ the [docs directory](docs).
* `v1.7.10` update base Docker image & deps & go
* `v1.7.11` update deps
* `v1.7.12` update base Docker image
* `v1.7.32` update base Docker image
* `v1.7.13` update base Docker image
* `v1.7.14` update base Docker image & deps & go

[restic]: https://github.com/restic/restic
[sidecar]: test/deploy/demo/base/_common/deployment.yaml#L26-L48
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# https://hub.docker.com/_/golang
FROM golang:1.23.3 AS builder
FROM golang:1.23.4 AS builder
WORKDIR /go/src/app
ARG VERSION
COPY . ./
RUN CGO_ENABLED=0 go build -trimpath -tags timetzdata -ldflags="-s -w -X 'main.build=$VERSION'" -o mcs-backup ./cmd/mcs-backup

# https://hub.docker.com/_/alpine
FROM library/alpine:3.20.3
FROM library/alpine:3.21.0

# https://github.com/restic/restic/releases
ARG RESTIC_VERSION=0.17.3
# https://github.com/mikefarah/yq/releases/
ARG YQ_VERSION=4.44.3
ARG YQ_VERSION=4.44.6
RUN set -x \
&& apk --no-cache add curl \
&& curl -Lo /usr/bin/restic.bz2 \
Expand All @@ -30,7 +30,7 @@ RUN chmod 755 /usr/bin/mcs-backup /opt/bin/cleanup-backup-root.sh
ENV HOME=/tmp \
TZ=GMT \
BACKUP_ROOT=/mnt \
RETENTION_POLICY='{"daily":7,"last":10}'
RETENTION_POLICY='{"weekly":2,"daily":7,"last":10}'

WORKDIR /tmp

Expand Down

0 comments on commit cb94373

Please sign in to comment.