Update 'Dockerfile'

This commit is contained in:
techknowlogick 2021-09-29 01:02:58 +08:00
parent 35654ada42
commit 524f98af99
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,7 @@
FROM golang:1.17-buster
RUN adduser --disabled-password --gecos '' gitea
# upgrade git to v2.33.0
RUN curl -SL https://github.com/git/git/archive/v2.33.0.tar.gz \
| 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
&& 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
RUN useradd -d -ms /bin/bash gitea