mirror of https://github.com/rancher/rke-tools.git
23 lines
754 B
Docker
23 lines
754 B
Docker
FROM registry.suse.com/bci/golang:1.23
|
|
|
|
ARG DAPPER_HOST_ARCH
|
|
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH}
|
|
|
|
RUN zypper -n install gcc vim less file docker git wget curl go
|
|
|
|
ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm=armv6l GOLANG_ARCH_arm64=arm64 GOLANG_ARCH=GOLANG_ARCH_${ARCH} \
|
|
GOPATH=/go PATH=/go/bin:/usr/local/go/bin:${PATH} SHELL=/bin/bash
|
|
|
|
ENV GOLANGCI_LINT=v1.59.1
|
|
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s ${GOLANGCI_LINT};
|
|
|
|
ENV DAPPER_ENV REPO TAG DRONE_TAG
|
|
ENV DAPPER_SOURCE /go/src/github.com/rancher/rke-tools/
|
|
ENV DAPPER_OUTPUT ./bin ./dist
|
|
ENV DAPPER_DOCKER_SOCKET true
|
|
ENV HOME ${DAPPER_SOURCE}
|
|
WORKDIR ${DAPPER_SOURCE}
|
|
|
|
ENTRYPOINT ["./scripts/entry"]
|
|
CMD ["ci"]
|