Skip to content

Commit 00b4dd4

Browse files
committed
[Security] Install Ubuntu updates while building docker image
1 parent b2b6c4c commit 00b4dd4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docker/pulsar/Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ FROM adoptopenjdk:11-jdk
5454
RUN groupadd -g 10001 pulsar
5555
RUN adduser -u 10000 --gid 10001 --disabled-login --disabled-password --gecos '' pulsar
5656

57-
# Install some utilities
58-
RUN apt-get update \
57+
# Install upgrades and some utilities
58+
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
59+
&& apt-get -y dist-upgrade \
5960
&& apt-get install -y netcat dnsutils less procps iputils-ping \
6061
python3 python3-dev python3-setuptools python3-yaml python3-kazoo \
6162
libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev \
6263
curl vim net-tools unzip \
64+
&& apt-get -y --purge autoremove \
65+
&& apt-get autoclean \
6366
&& apt-get clean \
6467
&& rm -rf /var/lib/apt/lists/*
6568

0 commit comments

Comments
 (0)