We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1af09cd commit 0d1e4bdCopy full SHA for 0d1e4bd
1 file changed
Dockerfile
@@ -0,0 +1,14 @@
1
+# Use an official OpenJDK runtime as the base image
2
+FROM openjdk:11-jre-slim
3
+
4
+# Set the working directory inside the container
5
+WORKDIR /app
6
7
+# Copy the built JAR file from the target directory to the container
8
+COPY target/*.jar app.jar
9
10
+# Expose port 8080 for the application
11
+EXPOSE 8080
12
13
+# Command to run the application
14
+CMD ["java", "-jar", "app.jar"]
0 commit comments