1
0
mirror of https://github.com/rancher/norman.git synced 2025-04-28 03:20:08 +00:00
norman/Dockerfile.dapper
renovate-rancher[bot] d0f6277b14
Update dependency golangci/golangci-lint to v1.64.6 (#623)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-03-04 13:47:37 -08:00

22 lines
598 B
Docker

FROM registry.suse.com/bci/golang:1.23
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
ARG CACHEBUST=1
RUN zypper -n up && \
zypper -n in git docker vim curl wget
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; \
fi
ENV DAPPER_ENV REPO TAG DRONE_TAG
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"]