github.com/quay/claircore@v1.5.28/etc/Dockerfile (about) 1 # syntax=docker/dockerfile:experimental 2 FROM registry.access.redhat.com/ubi8/ubi:8.7 AS install 3 RUN dnf install -q -y \ 4 gcc \ 5 make \ 6 git \ 7 &&\ 8 dnf clean all 9 ARG GO_VERSION 10 ARG GO_CHECKSUM 11 RUN arch=$(case "$(uname -m)" in\ 12 s390x) echo s390x ;;\ 13 ppc64le) echo ppc64le ;;\ 14 aarch64) echo arm64 ;;\ 15 x86_64) echo amd64 ;;\ 16 *) exit 99 ;; esac);\ 17 curl -sSLfo /tmp/go.tar.gz "https://dl.google.com/go/go${GO_VERSION}.linux-${arch}.tar.gz";\ 18 test -n "${GO_CHECKSUM}" && { echo "${GO_CHECKSUM} /tmp/go.tar.gz" | sha256sum -c - || exit 99; };\ 19 tar -xz -C /usr/local/ -f /tmp/go.tar.gz && rm /tmp/go.tar.gz && /usr/local/go/bin/go version 20 ENV GOPATH=/go 21 ENV GOBIN=/usr/local/bin 22 ENV PATH="$PATH:/usr/local/go/bin" 23 WORKDIR $GOPATH