Skip to content

Commit 9acf196

Browse files
Update Dockerfile
1 parent 3ed72fc commit 9acf196

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

jdk-11/dind/Dockerfile

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,33 @@ RUN apt-get update && \
1919
gnupg \
2020
git \
2121
software-properties-common && \
22-
install -m 0755 -d /etc/apt/keyrings && \
22+
mkdir -p /etc/apt/keyrings && \
2323
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \
2424
chmod a+r /etc/apt/keyrings/docker.asc && \
2525
echo \
2626
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
2727
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
2828
tee /etc/apt/sources.list.d/docker.list > /dev/null && \
2929
apt-get update && \
30-
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
30+
apt-get install -y -qq \
31+
docker-ce \
32+
docker-ce-cli \
33+
containerd.io \
34+
docker-buildx-plugin \
35+
docker-compose
3136

3237
# Get Docker version
3338
RUN docker --version >> docker-version.txt
3439

35-
# Install azure cli latest avaialble version
36-
RUN apt-get update -y && \
37-
mkdir -p /etc/apt/keyrings && \
40+
# Install Azure CLI latest available version
41+
RUN mkdir -p /etc/apt/keyrings && \
3842
curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/keyrings/microsoft.gpg > /dev/null && \
3943
chmod go+r /etc/apt/keyrings/microsoft.gpg && \
4044
AZ_DIST=$(lsb_release -cs) && \
41-
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_DIST main" | tee /etc/apt/sources.list.d/azure-cli.list && \
45+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_DIST main" | \
46+
tee /etc/apt/sources.list.d/azure-cli.list > /dev/null && \
4247
apt-get update && \
43-
apt-get install azure-cli -y
48+
apt-get install -y -qq azure-cli
4449

45-
# Get Azure cli version
50+
# Get Azure CLI version
4651
RUN az --version >> az-version.txt
47-
48-
49-
50-
51-
52-
53-
54-
55-

0 commit comments

Comments
 (0)