Create Dockerfile

This commit is contained in:
nagarjuna33 2023-04-09 23:55:02 +05:30 committed by GitHub
parent ed38478de6
commit cc71a361fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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