FROM registry.suse.com/bci/golang:1.19 ARG DAPPER_HOST_ARCH ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH} RUN zypper -n install ca-certificates git-core wget curl unzip tar vim less file xz RUN zypper install -y -f docker ENV UPX_VERSION 4.0.2 RUN curl -sL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${ARCH}_linux.tar.xz | tar xvJf - --strip-components=1 -C /tmp && \ mv /tmp/upx /usr/bin/ RUN if [ "${ARCH}" == "amd64" ]; then \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0; \ fi ENV GIT_COMMIT="9fc1f146baae51295bf8d4b3f3a2d24b79fddd43" \ GIT_BRANCH="ke/v0.2" \ GIT_SOURCE=${GOPATH}/src/github.com/rancher/steve \ CATTLE_DASHBOARD_UI_VERSION="v2.6.12-kube-explorer-ui-rc1" ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS ENV DAPPER_SOURCE /opt/kube-explorer ENV DAPPER_OUTPUT ./bin ./dist ENV DAPPER_DOCKER_SOCKET true ENV DAPPER_RUN_ARGS "-v ke-pkg:/go/pkg -v ke-cache:/root/.cache/go-build --privileged" ENV GOCACHE /root/.cache/go-build ENV HOME ${DAPPER_SOURCE} WORKDIR ${DAPPER_SOURCE} ENTRYPOINT ["./scripts/entry"] CMD ["ci"]