-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
33 lines (25 loc) · 1.05 KB
/
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
30
31
32
33
FROM maven:3.8.6-eclipse-temurin-17 AS build
# Tray Icon
# apt-get install libxrender1:i386 libxtst6:i386 libxi6:i386
# Yourkit
#RUN apt-get update \
# && apt-get install unzip -y \
# && apt-get install wget -y
#
#RUN wget https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2022.3-docker.zip -P /home/ && \
# unzip /home/YourKit-JavaProfiler-2022.3-docker.zip -d /usr/local && \
# rm /home/YourKit-JavaProfiler-2022.3-docker.zip
COPY src /home/app/src
COPY pom.xml /home/app
RUN mvn -T 1C -f /home/app/pom.xml clean package -DskipTests -Dmaven.test.skip
#
# Package stage
#
FROM ghcr.io/graalvm/jdk:22.3.2
# Yourkit
# COPY --from=build /usr/local/ /usr/local/
#ENV JAVA_TOOL_OPTIONS -agentpath:/usr/local/YourKit-JavaProfiler-2022.3/bin/linux-x86-64/libyjpagent.so=port=10001,listen=all
# Remote Debugging
#ENV JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,address=*:8000,server=y,suspend=n
COPY --from=build /home/app/target/ob-cranker-0.0.1-SNAPSHOT.jar /usr/local/lib/ob-cranker.jar
ENTRYPOINT ["java","-jar","/usr/local/lib/ob-cranker.jar"]