Skip to content

Commit

Permalink
Maintain: Dockerfile has changed to use maven Docker as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
mnafshin committed May 13, 2020
1 parent 4315b16 commit e6f6dfd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
FROM openjdk:8
COPY target/webservice-1.0.0.jar ./webservice.jar
ENTRYPOINT ["java","-jar","webservice.jar"]
FROM maven:3.6.3-jdk-8
RUN mkdir webservice
WORKDIR webservice
COPY . .
RUN mvn clean package
ENTRYPOINT ["java","-jar","target/webservice-1.0.0.jar"]

0 comments on commit e6f6dfd

Please sign in to comment.