mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-12-23 01:20:20 +01:00
inject proper version for mc command at compile time
This commit is contained in:
parent
07befda44d
commit
fa356137e8
@ -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…
Reference in New Issue
Block a user