From fa5a4d001c5baee57eaa25bc98285b9854cef776 Mon Sep 17 00:00:00 2001 From: Aitor Acedo Date: Thu, 24 Jun 2021 08:45:05 +0000 Subject: [PATCH] Include microdnf update command to the Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4754c69..f6428a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} ENV REQUIRED_PACKAGES="tar gzip shadow-utils libsemanage" -RUN microdnf --setopt=tsflags=nodocs install $REQUIRED_PACKAGES \ +RUN microdnf update -y --setopt=install_weak_deps=0 --nodocs \ + && microdnf --setopt=tsflags=nodocs install $REQUIRED_PACKAGES \ && useradd sysdig -u 1000 \ && microdnf clean all \ && rm -rf /var/cache/yum \ @@ -33,4 +34,4 @@ RUN cd /rules && \ EXPOSE 5000 HEALTHCHECK --start-period=30s CMD curl -f 127.0.0.1:5000 || exit 1 USER 1000 -ENTRYPOINT ["/cloud-connector"] \ No newline at end of file +ENTRYPOINT ["/cloud-connector"] -- GitLab