Skip to content

Instantly share code, notes, and snippets.

@aroxu
Last active August 23, 2021 10:43
Show Gist options
  • Save aroxu/0df93f71b7a429bbd650b44ee8496ac2 to your computer and use it in GitHub Desktop.
Save aroxu/0df93f71b7a429bbd650b44ee8496ac2 to your computer and use it in GitHub Desktop.
Kotlin + OpenJDK 16 for ARM64
FROM arm64v8/adoptopenjdk:16
RUN apt update -y && apt install bash -y && \
apt install build-essential wget zip unzip -y && \
cd /usr/lib && \
wget -q https://github.com/JetBrains/kotlin/releases/download/v1.5.21/kotlin-compiler-1.5.21.zip && \
unzip kotlin-compiler-*.zip && \
rm kotlin-compiler-*.zip && \
rm -f kotlinc/bin/*.bat && \
apt purge build-essential -y
ENV PATH $PATH:/usr/lib/kotlinc/bin
CMD ["kotlinc"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment