mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 16:55:50 +00:00
Update Dockerfile
This commit is contained in:
parent
fa5711e6a7
commit
2c0466c72a
1 changed files with 1 additions and 2 deletions
|
@ -1,10 +1,9 @@
|
|||
FROM ubuntu:20.04 as build
|
||||
RUN apt update && \
|
||||
apt install openjdk-17-jdk -y && \
|
||||
apt install maven -y && \
|
||||
apt install git -y && \
|
||||
git clone https://github.com/spring-projects/spring-petclinic.git && \
|
||||
cd spring-petclinic && \
|
||||
./mvnw package
|
||||
EXPOSE 8080
|
||||
CMD [ "java", "-jar", "/spring-petclinic/target/spring-petclinic-3.0.0-SNAPSHOT.jar" ]
|
||||
CMD [ "java", "-jar", "/spring-petclinic/target/spring-petclinic-3.0.0-SNAPSHOT.jar" ]
|
||||
|
|
Loading…
Reference in a new issue