-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·29 lines (22 loc) · 745 Bytes
/
Dockerfile
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
29
FROM ubuntu:22.04
LABEL maintainer="Ansu Varghese <avarghese@us.ibm.com>"
#Dockerfile input is the class name whose native image must be generated
ARG CLASS_NAME="Hello"
ARG IS_QUARKUS="false"
WORKDIR /jdwp
COPY nativeImageGen.sh .
COPY src ./src
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -qqy update \
&& apt-get -qqy install \
build-essential \
valgrind \
zlib1g-dev
#Graalvm exec jar in current dir downloaded from https://github.com/graalvm/graalvm-ce-builds/releases
COPY graalvm ./graalvm
ENV GRAALVM_HOME /jdwp/graalvm
ENV PATH $PATH:$GRAALVM_HOME/bin
RUN $GRAALVM_HOME/bin/gu install native-image
ENV CLASS_NAME=$CLASS_NAME
ENV IS_QUARKUS=$IS_QUARKUS
ENTRYPOINT ./nativeImageGen.sh -c $CLASS_NAME -k $IS_QUARKUS