1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-18 08:14:56 +00:00
Files
norman/Dockerfile.dapper
Steffan Tucker e8b47ab4c4 Updated dapper files
Migrated to SUSE containers, a newer version of Go, and using golangci-lint for all linting.
2022-07-26 10:40:30 -06:00

23 lines
618 B
Docker

FROM registry.suse.com/bci/golang:1.17
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.46.2; \
fi
ENV GO111MODULE off
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"]