Phoenix21 commited on
Commit
596c700
·
verified ·
1 Parent(s): 05b1759

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM openjdk:17-jdk-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy the jar file
6
+ COPY target/*.jar app.jar
7
+
8
+ # Expose port
9
+ EXPOSE 7860
10
+
11
+ # Set environment variables
12
+ ENV SERVER_PORT=7860
13
+ ENV SPRING_PROFILES_ACTIVE=prod
14
+
15
+ # Run the application
16
+ ENTRYPOINT ["java", "-jar", "/app/app.jar"]