Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiang authored Dec 27, 2024
1 parent 9c821cf commit 133166a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ RUN apt-get -qqq update \
&& mkdir -p /usr/share/keyrings \
&& curl --fail --show-error https://packages.microsoft.com/config/ubuntu/$VERSION_ID/prod.list -o /tmp/microsoft-prod.list \
&& if ! grep -q "signed-by=" /tmp/microsoft-prod.list; then \
sed -E 's#deb\s+\[#deb [signed-by=/usr/share/keyrings/microsoft-prod.gpg #; t; q1' /tmp/microsoft-prod.list > /etc/apt/sources.list.d/microsoft.list; \
sed -E 's#deb\s+\[#deb [signed-by=/usr/share/keyrings/microsoft-prod.gpg #; t; q1' /tmp/microsoft-prod.list > /etc/apt/sources.list.d/microsoft.list;
rm /tmp/microsoft-prod.list; \
else \
mv /tmp/microsoft-prod.list /etc/apt/sources.list.d/microsoft.list; \
fi \
Expand Down

0 comments on commit 133166a

Please sign in to comment.