-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.ubuntu
More file actions
28 lines (20 loc) · 827 Bytes
/
Dockerfile.ubuntu
File metadata and controls
28 lines (20 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu
RUN apt-get update && \
apt-get -y install gcc libc6-dev zlib1g-dev curl bash && \
rm -rf /var/lib/apt/lists/*
# Latest version of GraalVM (at the time of writing)
ENV GRAAL_VERSION 19.1.1
ENV GRAAL_FILENAME graalvm-ce-linux-amd64-${GRAAL_VERSION}.tar.gz
# Download GraalVM
RUN curl -4 -L https://github.com/oracle/graal/releases/download/vm-${GRAAL_VERSION}/${GRAAL_FILENAME} -o /tmp/${GRAAL_FILENAME}
# Untar and move the files we need:
RUN tar -zxvf /tmp/${GRAAL_FILENAME} -C /tmp \
&& mv /tmp/graalvm-ce-${GRAAL_VERSION} /usr/lib/graalvm
RUN rm -rf /tmp/*
# install native image
RUN /usr/lib/graalvm/bin/gu install native-image
# Create a volume to which we can mount to build:
VOLUME /project
WORKDIR /project
# And finally, run native-image
ENTRYPOINT ["/usr/lib/graalvm/bin/native-image"]