Created
September 26, 2022 13:45
-
-
Save rotty3000/eb29c3f066922a6b6b29133f9bc8c822 to your computer and use it in GitHub Desktop.
Add Azul Zulu Debian repo without warnings and using `signed-by` pattern.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN mkdir -p /etc/apt/keyrings && \ | |
curl -fsSL 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xB1998361219BD9C9' | gpg --dearmor -o /etc/apt/keyrings/azul.gpg && \ | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" \ | |
| tee /etc/apt/sources.list.d/zulu-openjdk.list > /dev/null && \ | |
apt-get update && \ | |
apt-get install -y zulu11-jdk && \ | |
apt-get clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment