Make RESTIC_VERSION an argument

This commit is contained in:
2023-04-06 12:46:38 +02:00
parent 96377203b0
commit 1a99bba3c5
2 changed files with 4 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
ARG RESTIC_VERSION=0.15.1
FROM golang:1.19-alpine AS builder
ENV RESTIC_VERSION 0.15.1
RUN apk add --no-cache git
RUN git clone --depth 1 --branch v${RESTIC_VERSION} https://github.com/restic/restic.git /go/src/github.com/restic/restic