mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +00:00
Create Dockerfile
This commit is contained in:
parent
ed38478de6
commit
cc71a361fa
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM openjdk:11
|
||||
ARG user=springpet
|
||||
ARG group=springpet
|
||||
ARG uid=1000
|
||||
ARG gid=1000
|
||||
LABEL author="Arjun"
|
||||
LABEL project="test"
|
||||
ADD https://arjunaartifact.jfrog.io/ui/native/libs-release-local/spring-petclinic-2.7.3.jar
|
||||
EXPOSE 8080
|
||||
RUN useradd springpet
|
||||
USER ${user}
|
||||
CMD [ "java", "-jar", "/spring-petclinic-2.7.3.jar" ]
|
Loading…
Reference in a new issue