Skip to content

Commit 3180545

Browse files
committed
Docker File
1 parent aefab47 commit 3180545

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Jenkins-PIpeline-Demo/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM openjdk:8-jdk-alpine
2+
RUN addgroup -S shabbir && adduser -S shabbir -G shabbir
3+
USER shabbir:shabbir
4+
ARG JAR_FILE=target/*.jar
5+
COPY ${JAR_FILE} app.jar
6+
ENTRYPOINT ["java","-jar","/app.jar"]

0 commit comments

Comments
 (0)