Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Created September 26, 2022 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rotty3000/eb29c3f066922a6b6b29133f9bc8c822 to your computer and use it in GitHub Desktop.
Save rotty3000/eb29c3f066922a6b6b29133f9bc8c822 to your computer and use it in GitHub Desktop.
Add Azul Zulu Debian repo without warnings and using `signed-by` pattern.
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