gotest.tools/gotestsum@v1.11.0/.project/Dockerfile (about)

     1  
     2  ARG     GOLANG_VERSION
     3  FROM    golang:${GOLANG_VERSION:-1.18-alpine} as golang
     4  RUN     apk add -U curl git bash
     5  ENV     CGO_ENABLED=0 \
     6          PS1="# " \
     7          GO111MODULE=on
     8  ARG     UID=1000
     9  RUN     adduser --uid=${UID} --disabled-password devuser
    10  USER    ${UID}:${UID}
    11  
    12  
    13  FROM    golang as tools
    14  RUN     wget -O- -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s && \
    15              mv bin/golangci-lint /go/bin
    16  
    17  
    18  FROM    golang as dev
    19  COPY    --from=tools /go/bin/golangci-lint /usr/bin/golangci-lint
    20  
    21  
    22  FROM    dev as dev-with-source
    23  COPY    . .