add a non-root user to testing image

This commit is contained in:
techknowlogick 2021-09-29 00:58:25 +08:00
parent 5cbc2c5b39
commit 35654ada42
1 changed files with 3 additions and 1 deletions

View File

@ -13,4 +13,6 @@ RUN curl -SL https://github.com/git/git/archive/v2.33.0.tar.gz \
&& apt-get install -y git-lfs \
# 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
&& 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