Browse Source

Add files via upload

add dockerfile
pull/35/head
pigeon2049 2 years ago committed by GitHub
parent
commit
ff4e2ac667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      Dockerfile

12
Dockerfile

@ -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…
Cancel
Save