diff --git a/Dockerfile b/Dockerfile index 54eb060..4ee7c5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine AS buildenv +FROM golang:1.14.2-alpine3.11 AS buildenv ARG VERSION="0.3.0" ENV TEA_VERSION="${VERSION}" @@ -7,10 +7,9 @@ ARG GOOS="linux" WORKDIR $GOPATH/src -RUN apk add --no-cache git && \ +RUN apk add --no-cache git=2.24.3-r0 && \ git config --global advice.detachedHead false && \ - git clone --single-branch https://gitea.com/gitea/tea -b v${TEA_VERSION} && \ - cd tea && \ + git clone --single-branch https://gitea.com/gitea/tea -b v${TEA_VERSION} . && \ go get -v . && \ go build -v -a -ldflags "-X main.Version=${TEA_VERSION}" -o /tea .