diff --git a/build/dockerfiles/brew.Dockerfile b/build/dockerfiles/brew.Dockerfile index d3f821b3..5d7c3181 100644 --- a/build/dockerfiles/brew.Dockerfile +++ b/build/dockerfiles/brew.Dockerfile @@ -13,7 +13,6 @@ FROM rhel8/go-toolset:1.19.10-3 as builder ENV GOPATH=/go/ \ CGO_ENABLED=1 - USER root WORKDIR /che-machine-exec/ COPY . . @@ -27,8 +26,10 @@ RUN adduser unprivilegeduser && \ cp -rf /etc/passwd /rootfs/etc && \ cp -rf /che-machine-exec/che-machine-exec /rootfs/go/bin -FROM scratch +# https://registry.access.redhat.com/ubi8-minimal +FROM registry.access.redhat.com/ubi8-minimal:8.8-1014 as runtime COPY --from=builder /rootfs / +RUN microdnf install -y openssl; microdnf clean -y all USER unprivilegeduser ENTRYPOINT ["/go/bin/che-machine-exec"] diff --git a/build/dockerfiles/rhel.Dockerfile b/build/dockerfiles/rhel.Dockerfile index 45a2e19d..3bb571ed 100644 --- a/build/dockerfiles/rhel.Dockerfile +++ b/build/dockerfiles/rhel.Dockerfile @@ -26,8 +26,10 @@ RUN adduser unprivilegeduser && \ cp -rf /etc/passwd /rootfs/etc && \ cp -rf /che-machine-exec/che-machine-exec /rootfs/go/bin -FROM scratch +# https://registry.access.redhat.com/ubi8-minimal +FROM registry.access.redhat.com/ubi8-minimal:8.8-1014 as runtime COPY --from=builder /rootfs / +RUN microdnf install -y openssl; microdnf clean -y all USER unprivilegeduser ENTRYPOINT ["/go/bin/che-machine-exec"]