mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-09-08 07:24:35 +08:00
inject proper version for mc command at compile time
This commit is contained in:
parent
07befda44d
commit
fa356137e8
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
FROM golang:1.16-alpine as builder
|
||||
ARG MC_VERSION=RELEASE.2021-06-13T17-48-22Z
|
||||
RUN go install github.com/minio/mc@$MC_VERSION
|
||||
RUN go install -ldflags "-X github.com/minio/mc/cmd.ReleaseTag=$MC_VERSION" github.com/minio/mc@$MC_VERSION
|
||||
|
||||
FROM alpine:3.14
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue