mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
30 lines
1.2 KiB
Docker
30 lines
1.2 KiB
Docker
FROM golang:1.11-alpine3.8
|
|
|
|
RUN apk -U --no-cache add bash git gcc musl-dev docker vim less file curl wget ca-certificates jq linux-headers zlib-dev tar zip squashfs-tools npm coreutils \
|
|
python3 py3-pip python3-dev openssl-dev libffi-dev libseccomp libseccomp-dev make
|
|
RUN pip3 install 'tox==3.6.0'
|
|
RUN apk -U --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/main/ add sqlite-dev sqlite-static
|
|
RUN go get -d golang.org/x/lint/golint && \
|
|
git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \
|
|
go install golang.org/x/lint/golint && \
|
|
rm -rf /go/src /go/pkg
|
|
RUN go get -d github.com/alecthomas/gometalinter && \
|
|
git -C /go/src/github.com/alecthomas/gometalinter checkout -b current v2.0.11 && \
|
|
go install github.com/alecthomas/gometalinter && \
|
|
gometalinter --install && \
|
|
rm -rf /go/src /go/pkg
|
|
|
|
ENV DAPPER_RUN_ARGS --privileged
|
|
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME
|
|
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
|
|
ENV DAPPER_OUTPUT ./bin ./dist
|
|
ENV DAPPER_DOCKER_SOCKET true
|
|
ENV HOME ${DAPPER_SOURCE}
|
|
ENV CROSS true
|
|
ENV STATIC_BUILD true
|
|
WORKDIR ${DAPPER_SOURCE}
|
|
|
|
ENTRYPOINT ["./scripts/entry"]
|
|
CMD ["ci"]
|
|
|