diff --git a/Mar21/ENVARGDemo/EnvDemo/Dockerfile b/Mar21/ENVARGDemo/EnvDemo/Dockerfile new file mode 100644 index 0000000..7c17a73 --- /dev/null +++ b/Mar21/ENVARGDemo/EnvDemo/Dockerfile @@ -0,0 +1,13 @@ +FROM openjdk:8 +# base image is openjdk +LABEL author="khaja ibrahim" +LABEL maintainer="qtdevops@gmail.com" +ENV applicationpath='/springpetclinic.jar' +ENV dummy='dummy' +ARG downloadlocation +# Downloading the image from the url +ADD ${downloadlocation} ${applicationpath} +# spring pet clinic runs on port 8080 +EXPOSE 8080 +# command to start the application +CMD ["java", "-jar", ${applicationpath} ] \ No newline at end of file