addded the docker file

This commit is contained in:
Ubuntu 2026-01-23 14:32:59 +00:00
parent ab1d5364a0
commit 9438ddd45b
8 changed files with 16 additions and 0 deletions

0
18c9cb0fe96f Normal file
View file

0
1d00d209bc23 Normal file
View file

0
1ece8c75e43b Normal file
View file

0
3e201c4b0492 Normal file
View file

0
9422f9b87463 Normal file
View file

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
# use the light wight jdk 17 base image
FROM eclipse-temurin:17-jdk-alpine
# Set working directory inside the container
WORKDIR /app
COPY target/spring-petclinic-4.0.0-SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","app.jar"]

8
Dockerfile1 Normal file
View file

@ -0,0 +1,8 @@
# use the light wight jdk 17 base image
FROM eclipse-temurin:17-jdk-alpine
# Set working directory inside the container
WORKDIR /app
COPY target/spring-petclinic-4.0.0-SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","app.jar"]

0
Using Normal file
View file