gitlab-runner-gateway/Dockerfile-agent
Antoine 7bf586dabf
add graalvm compilation
logging not work properly for the moment
2020-08-18 00:46:49 +02:00

15 lines
422 B
Plaintext

FROM oracle/graalvm-ce:20.1.0-java11 as builder
WORKDIR /build
VOLUME /build
# Install GraalVM Native Image
RUN gu install native-image; \
native-image --version
ENV RUN_PORT 8080
RUN mkdir -p /build/src/main/resources/META-INF
CMD java -agentlib:native-image-agent=config-output-dir=/build/src/main/resources/META-INF/native-image \
-jar /build/target/wikiProject-1.0-SNAPSHOT.jar --server.port=$ENV_PORT