2025-01-29 19:23:31 +05:30
|
|
|
FROM registry.suse.com/bci/golang:1.23
|
2017-10-11 22:48:07 -07:00
|
|
|
|
2020-03-26 13:17:36 -07:00
|
|
|
ARG DAPPER_HOST_ARCH
|
|
|
|
ENV ARCH $DAPPER_HOST_ARCH
|
2022-07-07 18:54:04 -06:00
|
|
|
ARG CACHEBUST=1
|
|
|
|
RUN zypper -n up && \
|
|
|
|
zypper -n in git docker vim curl wget
|
2020-03-26 13:17:36 -07:00
|
|
|
RUN rm -rf /go/src /go/pkg
|
|
|
|
RUN if [ "${ARCH}" == "amd64" ]; then \
|
2025-03-04 13:47:37 -08:00
|
|
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.64.6; \
|
2020-03-26 13:17:36 -07:00
|
|
|
fi
|
2017-10-11 22:48:07 -07:00
|
|
|
|
2020-03-26 13:17:36 -07:00
|
|
|
ENV DAPPER_ENV REPO TAG DRONE_TAG
|
2017-10-11 22:48:07 -07:00
|
|
|
ENV DAPPER_SOURCE /go/src/github.com/rancher/norman/
|
|
|
|
ENV DAPPER_OUTPUT ./bin ./dist
|
|
|
|
ENV DAPPER_DOCKER_SOCKET true
|
|
|
|
ENV HOME ${DAPPER_SOURCE}
|
|
|
|
WORKDIR ${DAPPER_SOURCE}
|
|
|
|
|
|
|
|
ENTRYPOINT ["./scripts/entry"]
|
|
|
|
CMD ["ci"]
|