mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 17:15:48 +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
|
FROM ubuntu:20.04 as build
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install openjdk-17-jdk -y && \
|
apt install openjdk-17-jdk -y && \
|
||||||
apt install maven -y && \
|
|
||||||
apt install git -y && \
|
apt install git -y && \
|
||||||
git clone https://github.com/spring-projects/spring-petclinic.git && \
|
git clone https://github.com/spring-projects/spring-petclinic.git && \
|
||||||
cd spring-petclinic && \
|
cd spring-petclinic && \
|
||||||
./mvnw package
|
./mvnw package
|
||||||
EXPOSE 8080
|
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