Skip to content

Commit

Permalink
Upgrade all packages when building an image (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
culhatsker authored Dec 6, 2024
1 parent 1d59f29 commit 0b821c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/rhel8/common/base.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ RUN rm /etc/rhsm-host && rpm -qa --qf "%{name}\n" > base_packages.txt && \
{%- else -%}
RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \
{%- endif %}
yum install -y ${LGPL_DEPS} && \
yum update -y && yum install -y ${LGPL_DEPS} && \
${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \
if [ "$INSTALL_SOURCES" = "yes" ]; then \
yum install -y yum-utils && \
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu20/common/base.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ ARG INSTALL_PACKAGES="-c=python"
{% endif %}

# hadolint ignore=DL3008
RUN apt-get update && \
RUN apt-get update && apt-get upgrade -y && \
dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \
apt-get install -y --no-install-recommends ${DEPS} && \
rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu22/common/base.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ ARG INSTALL_PACKAGES="-c=python"
{% endif %}

# hadolint ignore=DL3008
RUN apt-get update && \
RUN apt-get update && apt-get upgrade -y && \
dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \
apt-get install -y --no-install-recommends ${DEPS} && \
rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu24/common/base.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ ARG INSTALL_PACKAGES="-c=python"
{% endif %}

# hadolint ignore=DL3008
RUN apt-get update && \
RUN apt-get update && apt-get upgrade -y && \
dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \
apt-get install -y --no-install-recommends ${DEPS} && \
rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 0b821c8

Please sign in to comment.