pigeon2049
2 years ago
committed by
GitHub
1 changed files with 12 additions and 0 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
# Build Stage |
||||
FROM maven:latest AS build |
||||
COPY src /home/app/src |
||||
COPY pom.xml /home/app |
||||
RUN mvn -f /home/app/pom.xml clean package |
||||
|
||||
# Execution Stage |
||||
FROM adoptopenjdk/openjdk11:debian |
||||
COPY --from=build /home/app/target/cloud-api-sample-1.5.0.jar /usr/local/lib/cloud-api-sample-1.5.0.jar |
||||
EXPOSE 8080 |
||||
ENTRYPOINT ["java","-jar","/usr/local/lib/cloud-api-sample-1.5.0.jar"] |
||||
|
Loading…
Reference in new issue