Skip to content

Commit

Permalink
PSS-23921: Update builder image and fix go dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jayesh-srivastava committed May 12, 2024
1 parent 7798f40 commit 1f8d292
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/root/.local/share/golang \
if [ ${CRYPTO_LIB} ];\
then \
GOARCH=${ARCH} go-build-fips.sh -a -o manager . ;\
GOARCH=${ARCH} go-build-fips.sh -a -o manager github.com/spectrocloud/cluster-api-provider-vsphere-static-ip ;\
else \
GOARCH=${ARCH} go-build-static.sh -a -o manager . ;\
GOARCH=${ARCH} go-build-static.sh -a -o manager github.com/spectrocloud/cluster-api-provider-vsphere-static-ip ;\
fi

RUN if [ "${CRYPTO_LIB}" ]; then assert-static.sh manager; fi
Expand All @@ -45,10 +45,11 @@ RUN scan-govulncheck.sh manager
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
#FROM gcr.io/distroless/static:latest
FROM gcr.io/spectro-images-public/third-party/alpine:3.19-fips
FROM gcr.io/spectro-images-public/build-base-images/openssl-fips-ktls:3.2-alpine3.19
RUN rm /usr/lib/engines-3/padlock.so
RUN rm /lib/libcrypto.so.3
RUN rm /usr/lib/ossl-modules/legacy.so
RUN rm -rf /opt/openssl-*
RUN addgroup -S spectro
RUN adduser -S -D -h / spectro spectro
USER spectro
Expand Down

0 comments on commit 1f8d292

Please sign in to comment.