added ubuntu

This commit is contained in:
sridhar 2023-09-06 17:45:01 +05:30
parent afd4023fdd
commit 38b402e6a3

View file

@ -1,6 +1,6 @@
FROM ubuntu:22.04
RUN apt update && apt install git -y
RUN apt-get install openjdk-17-jdk -y
RUN git clone https://github.com/Cloud-and-devops-notes/spring-petclinic-jenkins.git
RUN cd spring-petclinic-jenkins
RUN mvn package
CMD ["java" , "-jar" , "target/*.jar"]
CMD ["sleep","1d"]