mirror of
https://github.com/rancher/k3k.git
synced 2026-03-02 01:30:27 +00:00
* Allowing multiple OSs * add docs for windows * Improve docs * add manifests * fix readme * Update README.md * Improve macos docs * Change base build to go v1.20.7 and add freebsd
25 lines
787 B
Docker
25 lines
787 B
Docker
ARG GOLANG=rancher/hardened-build-base:v1.20.7b2
|
|
FROM ${GOLANG}
|
|
|
|
ARG DAPPER_HOST_ARCH
|
|
ENV ARCH $DAPPER_HOST_ARCH
|
|
|
|
RUN apk -U add \bash git gcc musl-dev docker vim less file curl wget ca-certificates
|
|
RUN if [ "${ARCH}" == "amd64" ]; then \
|
|
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.15.0; \
|
|
fi
|
|
|
|
RUN curl -sL https://github.com/helm/chart-releaser/releases/download/v1.5.0/chart-releaser_1.5.0_linux_${ARCH}.tar.gz | tar -xz cr \
|
|
&& mv cr /bin/
|
|
|
|
ENV GO111MODULE on
|
|
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS GITHUB_TOKEN
|
|
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3k/
|
|
ENV DAPPER_OUTPUT ./bin ./dist ./deploy
|
|
ENV DAPPER_DOCKER_SOCKET true
|
|
ENV HOME ${DAPPER_SOURCE}
|
|
WORKDIR ${DAPPER_SOURCE}
|
|
|
|
ENTRYPOINT ["./ops/entry"]
|
|
CMD ["ci"]
|