We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bef638 commit 9aa90feCopy full SHA for 9aa90fe
Dockerfile
@@ -0,0 +1,15 @@
1
+FROM eclipse-temurin:21-jre-alpine
2
+
3
+ARG APP_NAME
4
+ARG APP_VERSION
5
6
+RUN test -n "$APP_NAME" || (echo "APP_NAME not set" && false)
7
+RUN test -n "$APP_VERSION" || (echo "APP_VERSION not set" && false)
8
9
+WORKDIR /app
10
+COPY target/${APP_NAME}-${APP_VERSION}.jar /app/
11
12
+EXPOSE 8080
13
14
+ENV JAR_FILE_PATH="/app/${APP_NAME}-${APP_VERSION}.jar"
15
+ENTRYPOINT ["sh", "-c", "java -jar ${JAR_FILE_PATH}"]
0 commit comments