mirror of
https://git.netzspielplatz.de/docker-multiarch/minio.git
synced 2025-11-08 18:39:24 +00:00
we need to get the latest tag an work with it in the dockerfile also
This commit is contained in:
parent
cc06145256
commit
1fc9cd8b3e
1 changed files with 5 additions and 3 deletions
|
|
@ -7,9 +7,11 @@ ENV CGO_ENABLED 0
|
|||
ENV GO111MODULE on
|
||||
|
||||
RUN \
|
||||
apk add --no-cache git && \
|
||||
git clone -b release https://github.com/minio/minio && cd minio && \
|
||||
git checkout release && go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)"
|
||||
apk add --no-cache git jq && \
|
||||
git config --global advice.detachedHead false && \
|
||||
LATEST_MINIO_GITHUB=$(wget --quiet "https://api.github.com/repos/minio/minio/releases/latest" -O - | jq -r '.tag_name'); \
|
||||
git clone https://github.com/minio/minio && cd minio && \
|
||||
git checkout "$LATEST_MINIO_GITHUB" && go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)"
|
||||
|
||||
FROM alpine:3.12
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue