gitlab-runner-gateway/Dockerfile-agent

15 lines
422 B
Plaintext
Raw Normal View History

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