mirror of https://gitea.com/gitea/test-env.git
Update 'Dockerfile'
This commit is contained in:
parent
35654ada42
commit
524f98af99
|
@ -1,5 +1,7 @@
|
||||||
FROM golang:1.17-buster
|
FROM golang:1.17-buster
|
||||||
|
|
||||||
|
RUN adduser --disabled-password --gecos '' gitea
|
||||||
|
|
||||||
# upgrade git to v2.33.0
|
# upgrade git to v2.33.0
|
||||||
RUN curl -SL https://github.com/git/git/archive/v2.33.0.tar.gz \
|
RUN curl -SL https://github.com/git/git/archive/v2.33.0.tar.gz \
|
||||||
| tar -xzv -C /go \
|
| tar -xzv -C /go \
|
||||||
|
@ -14,5 +16,3 @@ RUN curl -SL https://github.com/git/git/archive/v2.33.0.tar.gz \
|
||||||
# install golangci-lint
|
# install golangci-lint
|
||||||
&& export BINARY="golangci-lint" \
|
&& export BINARY="golangci-lint" \
|
||||||
&& curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0
|
&& curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0
|
||||||
|
|
||||||
RUN useradd -d -ms /bin/bash gitea
|
|
Loading…
Reference in New Issue