Create Dockerfile

This commit is contained in:
Kunchala Vikram 2022-02-13 00:14:32 +05:30 committed by GitHub
parent d31bdfc705
commit 3d23ac00cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
Dockerfile Normal file
View 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"]