Skip to content

Commit 947f495

Browse files
author
CssTechnology
authored
Create Dockerfile
1 parent ba77c0e commit 947f495

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Use a lightweight OpenJDK 17 base image
2+
FROM openjdk:17-jdk-slim
3+
4+
# Copy the Spring Boot JAR file from the target directory into the image
5+
COPY target/*.jar app.jar
6+
7+
# Set the entry point to run the JAR file
8+
ENTRYPOINT ["java", "-jar", "/app.jar"]

0 commit comments

Comments
 (0)