Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.

Commit 88a9f61

Browse files
authored
Merge pull request #59 from parrobe/master
Don't apt-get upgrade everything, just vulnerable packages
2 parents cacdbdd + 081b795 commit 88a9f61

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ RUN export DEBIAN_FRONTEND=noninteractive \
6161
&& /opt/mqm/bin/setmqinst -p /opt/mqm -i \
6262
# Clean up all the downloaded files
6363
&& rm -rf /tmp/mq \
64-
&& apt-get update -y \
65-
&& apt-get upgrade -y \
64+
# Apply any bug fixes not included in base Ubuntu or MQ image.
65+
# Don't upgrade everything based on Docker best practices https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#run
66+
&& apt-get upgrade -y libc6 \
67+
# End of bug fixes
6668
&& rm -rf /var/lib/apt/lists/* \
6769
# Optional: Update the command prompt with the MQ version
6870
&& echo "mq:$(dspmqver -b -f 2)" > /etc/debian_chroot \

0 commit comments

Comments
 (0)