github.com/rancher/types@v0.0.0-20220328215343-4370ff10ecd5/Dockerfile.dapper (about)

     1  FROM golang:1.13.9-alpine3.10
     2  
     3  ARG DAPPER_HOST_ARCH
     4  ENV ARCH $DAPPER_HOST_ARCH
     5  
     6  RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates
     7  RUN go get -d golang.org/x/lint/golint && \
     8      git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \
     9      go install golang.org/x/lint/golint && \
    10      rm -rf /go/src /go/pkg
    11  RUN mkdir -p /go/src/golang.org/x && \
    12      cd /go/src/golang.org/x && git clone https://github.com/golang/tools && \
    13      git -C /go/src/golang.org/x/tools checkout -b current aa82965741a9fecd12b026fbb3d3c6ed3231b8f8 && \
    14      go install golang.org/x/tools/cmd/goimports
    15  RUN rm -rf /go/src /go/pkg
    16  RUN if [ "${ARCH}" == "amd64" ]; then \
    17          curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.15.0; \
    18      fi
    19  
    20  ENV GO111MODULE off
    21  ENV DAPPER_ENV REPO TAG DRONE_TAG
    22  ENV DAPPER_SOURCE /go/src/github.com/rancher/types/
    23  ENV DAPPER_OUTPUT ./bin ./dist
    24  ENV DAPPER_DOCKER_SOCKET true
    25  ENV HOME ${DAPPER_SOURCE}
    26  WORKDIR ${DAPPER_SOURCE}
    27  
    28  ENTRYPOINT ["./scripts/entry"]
    29  CMD ["ci"]