system-agent/Dockerfile.dapper

25 lines
772 B
Docker

FROM registry.suse.com/bci/golang:1.22
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
RUN zypper -n rm container-suseconnect && \
zypper -n install curl docker gzip tar wget awk zip
RUN go install golang.org/x/lint/golint@latest && \
go install golang.org/x/tools/cmd/goimports@latest && \
rm -rf /go/src /go/pkg
RUN if [ "${ARCH}" == "amd64" ]; then \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1; \
fi
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS GOARCH GOOS ARCH GH_VERSION
ENV DAPPER_SOURCE /go/src/github.com/rancher/system-agent/
ENV DAPPER_OUTPUT ./bin ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV HOME ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]