From 557def3f672ab367e1dcb41adcefc86a5a545245 Mon Sep 17 00:00:00 2001 From: Robert Cheramy Date: Thu, 28 Nov 2024 11:18:31 +0100 Subject: [PATCH] Fix container image not building when pkg/ not present --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 94fe5c793..9f2d421bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,8 @@ WORKDIR /tmp/oxidized # docker automated build gets shallow copy, but non-shallow copy cannot be unshallowed RUN git fetch --unshallow || true -# Remove any older gems of oxidized -RUN rm pkg/* +# Remove any older gems of oxidized if they exist +RUN rm pkg/* || true # Ensure rugged is built with ssh support RUN rake build