mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:05:48 +00:00
Dockerfile addded
This commit is contained in:
parent
e2fbc56130
commit
c189548f6b
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
FROM mcr.microsoft.com/java/maven:8-zulu-debian10
|
||||||
|
|
||||||
|
RUN sudo yum update -y
|
||||||
|
|
||||||
|
WORKDIR /opt
|
||||||
|
|
||||||
|
COPY **/*.jar /opt/apache-tomcat-9.0.35/webapps/host-manager/WEB-INF/lib
|
||||||
|
|
||||||
|
COPY org.springframework.samples/spring-petclinic/2.4.2/spring-petclinic-2.4.2.jar /opt/apache-tomcat-9.0.35/webapps/host-manager/WEB-INF/lib
|
||||||
|
|
||||||
|
RUN ./mvnw spring-boot:run
|
||||||
|
|
||||||
|
EXPOSE 8081
|
||||||
|
|
||||||
|
RUN ./mvnw package
|
||||||
|
|
||||||
|
CMD [ 'java', '-jar target/*.jar' ]
|
||||||
|
|
Loading…
Reference in a new issue