2424# # (see build-image.sh).
2525# # 2) and the default FINAL_BASE is primarily used to build Redhat Certified Openshift Operator container images that must be UBI based.
2626# # The RedHat build tool does not allow additional image build parameters.
27- ARG FINAL_BASE=registry.access.redhat.com/ubi8-micro
27+ ARG FINAL_BASE=registry.access.redhat.com/ubi8-micro:latest
2828# ##
2929# #
3030# # GOLANG_BASE can be used to make the build reproducible by choosing an
@@ -45,8 +45,7 @@ ARG CMD=fpga_crihook
4545ARG EP=/usr/local/fpga-sw/$CRI_HOOK
4646WORKDIR ${DIR}
4747COPY . .
48- RUN cd cmd/${CMD}; GO111MODULE=${GO111MODULE} CGO_ENABLED=0 go install "${BUILDFLAGS}" ; cd - \
49- && install -D /go/bin/${CMD} /install_root${EP}
48+ RUN (cd cmd/${CMD}; GO111MODULE=${GO111MODULE} CGO_ENABLED=0 go install "${BUILDFLAGS}" ) && install -D /go/bin/${CMD} /install_root${EP}
5049RUN install -D ${DIR}/LICENSE /install_root/licenses/intel-device-plugins-for-kubernetes/LICENSE \
5150 && if [ ! -d "licenses/$CMD" ] ; then \
5251 GO111MODULE=on go run github.com/google/go-licenses@${GOLICENSES_VERSION} save "./cmd/$CMD" \
@@ -57,8 +56,7 @@ ARG CMD=fpga_tool
5756ARG EP=/usr/local/fpga-sw/$CMD
5857WORKDIR ${DIR}
5958COPY . .
60- RUN cd cmd/${CMD}; GO111MODULE=${GO111MODULE} CGO_ENABLED=0 go install "${BUILDFLAGS}" ; cd - \
61- && install -D /go/bin/${CMD} /install_root${EP}
59+ RUN (cd cmd/${CMD}; GO111MODULE=${GO111MODULE} CGO_ENABLED=0 go install "${BUILDFLAGS}" ) && install -D /go/bin/${CMD} /install_root${EP}
6260RUN install -D ${DIR}/LICENSE /install_root/licenses/intel-device-plugins-for-kubernetes/LICENSE \
6361 && if [ ! -d "licenses/$CMD" ] ; then \
6462 GO111MODULE=on go run github.com/google/go-licenses@${GOLICENSES_VERSION} save "./cmd/$CMD" \
@@ -75,7 +73,8 @@ RUN echo "{\n\
7573ARG TOYBOX_VERSION="0.8.8"
7674ARG TOYBOX_SHA256="2bed6bb9edd5a249023103cf0402a835b0e53d10304a263f6f1e77a8aa49a898"
7775ARG ROOT=/install_root
78- RUN apt update && apt -y install musl musl-tools musl-dev
76+ RUN apt-get update && apt-get --no-install-recommends -y install musl musl-tools musl-dev
77+ SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
7978RUN curl -SL https://github.com/landley/toybox/archive/refs/tags/$TOYBOX_VERSION.tar.gz -o toybox.tar.gz \
8079 && echo "$TOYBOX_SHA256 toybox.tar.gz" | sha256sum -c - \
8180 && tar -xzf toybox.tar.gz \
0 commit comments