diff --git a/Dockerfile b/Dockerfile index 419332f..1a98097 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM golang:1.23.1-bookworm@sha256:dba79eb312528369dea87532a65dbe9d4efb26439a0fe RUN apt-get update -y && apt-get upgrade -y && apt-get install -y sudo && apt-get clean autoclean && apt-get autoremove --yes -RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 - -ENV GOPATH= - RUN useradd -ms /bin/bash build RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN adduser build sudo USER build + +RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 + +VOLUME /go