Upload Dockerfile
Browse files- 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"]
|