Skip to content

Commit

Permalink
Added env arg demo
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Mar 26, 2021
1 parent 693573a commit 378a60d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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} ]

0 comments on commit 378a60d

Please sign in to comment.