You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
384 B
13 lines
384 B
2 years ago
|
# 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"]
|
||
|
|