mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Create Dockerfile
This commit is contained in:
parent
d31bdfc705
commit
3d23ac00cc
1 changed files with 10 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Alpine Linux with OpenJDK JRE
|
||||
FROM openjdk:8-jre-alpine
|
||||
|
||||
EXPOSE 8181
|
||||
|
||||
# copy jar into image
|
||||
COPY target/spring-petclinic-2.2.0.BUILD-SNAPSHOT.jar /usr/bin/spring-petclinic.jar
|
||||
|
||||
# run application with this command line
|
||||
ENTRYPOINT ["java","-jar","/usr/bin/spring-petclinic.jar","--server.port=8181"]
|
Loading…
Reference in a new issue