forked from longhorn/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dapper
28 lines (19 loc) · 894 Bytes
/
Dockerfile.dapper
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM registry.suse.com/bci/golang:1.23
ARG DAPPER_HOST_ARCH
ENV ARCH=${DAPPER_HOST_ARCH}
ENV DAPPER_RUN_ARGS --privileged
ENV DAPPER_ENV REPO TAG DRONE_TAG
ENV DAPPER_SOURCE /cli
ENV DAPPER_OUTPUT ./bin ./docs coverage.out
ENV DAPPER_DOCKER_SOCKET true
ENV GOLANGCI_LINT_VERSION="v1.60.3"
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./dapper/entry"]
CMD ["ci"]
RUN zypper -n install curl awk docker && \
rm -rf /var/cache/zypp/*
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
# Docker Buildx: The docker version in dapper is too old to have buildx. Install it manually.
RUN curl -sSfLO https://github.com/docker/buildx/releases/download/v0.13.1/buildx-v0.13.1.linux-${ARCH} && \
chmod +x buildx-v0.13.1.linux-${ARCH} && \
mv buildx-v0.13.1.linux-${ARCH} /usr/local/bin/buildx