skyxuanzi commited on
Commit
1629d18
1 Parent(s): 3263321

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM maven:3-jdk-8-alpine as builder
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ COPY . /usr/src/app
6
+ RUN mvn package
7
+
8
+ FROM openjdk:8-jre-alpine
9
+
10
+ COPY --from=builder /usr/src/app/target/*.jar /app.jar
11
+
12
+ EXPOSE 8080
13
+
14
+ ENTRYPOINT ["java"]
15
+ CMD ["-jar", "/app.jar"]