build with 1.14 and try to build instead of install

This commit is contained in:
Micha Gläß-Stöcker 2021-04-15 12:39:43 +02:00
parent 6ae2db23fe
commit 89ddb40b07

View file

@ -1,4 +1,4 @@
FROM golang:1.13-alpine as builder FROM golang:1.14-alpine as builder
LABEL maintainer="MinIO Inc <dev@min.io>" LABEL maintainer="MinIO Inc <dev@min.io>"
@ -9,7 +9,7 @@ ENV GO111MODULE on
RUN \ RUN \
apk add --no-cache git && \ apk add --no-cache git && \
git clone https://github.com/minio/minio && cd minio && \ git clone https://github.com/minio/minio && cd minio && \
git checkout master && go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" git checkout master && go build -v -ldflags "$(go run buildscripts/gen-ldflags.go)"
FROM alpine:3.12 FROM alpine:3.12