1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-01 23:41:24 +00:00
norman/Dockerfile.dapper

22 lines
598 B
Docker
Raw Permalink Normal View History

FROM registry.suse.com/bci/golang:1.24
2017-10-12 05:48:07 +00:00
2020-03-26 20:17:36 +00:00
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
ARG CACHEBUST=1
RUN zypper -n up && \
zypper -n in git docker vim curl wget
2020-03-26 20:17:36 +00:00
RUN 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.64.6; \
2020-03-26 20:17:36 +00:00
fi
2017-10-12 05:48:07 +00:00
2020-03-26 20:17:36 +00:00
ENV DAPPER_ENV REPO TAG DRONE_TAG
2017-10-12 05:48:07 +00: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"]