Skip to content

Commit 73e3b07

Browse files
committed
edit dockerfile
1 parent 37f9657 commit 73e3b07

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Dockerfile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
FROM openjdk:11-jre-slim
2-
COPY target/streaming-0.0.1-SNAPSHOT.jar /app/video-service.jar
3-
EXPOSE 8081
4-
ENTRYPOINT ["java", "-jar", "/app/video-service.jar"]
1+
FROM openjdk:17-jdk
2+
3+
WORKDIR /app
4+
5+
# Copy the JAR file
6+
COPY target/streaming-0.0.1-SNAPSHOT.jar /app/app.jar
7+
8+
# Expose port
9+
EXPOSE 8080
10+
11+
# Command to run the application
12+
CMD [ "java", "-jar", "/app/app.jar" ]

0 commit comments

Comments
 (0)