-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
35 lines (27 loc) · 1.08 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
34
35
FROM maven:3.8.6-eclipse-temurin-17 AS build
#COPY gcloud.json /home/gcloud.json
#ENV GOOGLE_APPLICATION_CREDENTIALS /home/gcloud.json
# 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
# serum-data
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.1
# 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/serum-mm-1.0-SNAPSHOT.jar /usr/local/lib/serum-mm.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/usr/local/lib/serum-mm.jar"]