mirror of https://github.com/tgerczei/conteaner
addressed hadolint findings
This commit is contained in:
parent
57fd74f61e
commit
a5f31a48bf
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:alpine AS buildenv
|
FROM golang:1.14.2-alpine3.11 AS buildenv
|
||||||
|
|
||||||
ARG VERSION="0.3.0"
|
ARG VERSION="0.3.0"
|
||||||
ENV TEA_VERSION="${VERSION}"
|
ENV TEA_VERSION="${VERSION}"
|
||||||
|
@ -7,10 +7,9 @@ ARG GOOS="linux"
|
||||||
|
|
||||||
WORKDIR $GOPATH/src
|
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 config --global advice.detachedHead false && \
|
||||||
git clone --single-branch https://gitea.com/gitea/tea -b v${TEA_VERSION} && \
|
git clone --single-branch https://gitea.com/gitea/tea -b v${TEA_VERSION} . && \
|
||||||
cd tea && \
|
|
||||||
go get -v . && \
|
go get -v . && \
|
||||||
go build -v -a -ldflags "-X main.Version=${TEA_VERSION}" -o /tea .
|
go build -v -a -ldflags "-X main.Version=${TEA_VERSION}" -o /tea .
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue