Skip to content

Instantly share code, notes, and snippets.

@kishida

kishida/Dockerfile

Created Dec 29, 2020
Embed
What would you like to do?
GraalVM Dockerfile for Arm
FROM ubuntu:20.04
ENV GRAALVM_ARC=graalvm-ce-java11-linux-aarch64-20.3.0.tar.gz
ENV NATIVEIMAGE_FILE=native-image-installable-svm-java11-linux-aarch64-20.3.0.jar
ENV GRAALVM_HOME=/usr/graalvm-ce-java11-20.3.0
ENV JAVA_HOME=$GRAALVM_HOME
ENV PATH=$GRAALVM_HOME/bin:$PATH
ADD $GRAALVM_ARC /usr
COPY $NATIVEIMAGE_FILE /tmp
RUN apt-get update && apt-get -y install build-essential libz-dev zlib1g-dev
RUN gu -L install /tmp/$NATIVEIMAGE_FILE && rm /tmp/$NATIVEIMAGE_FILE
WORKDIR /src
COPY Hello.java /src
COPY SmallPT.java /src
RUN javac Hello.java && javac SmallPT.java
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment