addressed hadolint findings

This commit is contained in:
Tamás Gérczei 2020-05-13 08:25:07 +02:00
parent 57fd74f61e
commit a5f31a48bf
Signed by: tgerczei
GPG Key ID: 9E1246D452248DCE
1 changed files with 3 additions and 4 deletions

View File

@ -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 .