12345678910111213141516 |
- FROM openjdk:8 as base
- LABEL email="liuyuqi<liuyuqi.gov@msn.cn>"
- WORKDIR /app
- COPY . /app
- ENV JAVA_HOME=xx
- FROM base as builder
- RUN mvn package
- FROM base as runner
- WORKDIR /app
- COPY --from=builder ./target/*.jar app.jar
- EXPOSE 8080
- VOLUME [ "/data" ]
- ENTRYPOINT ["java", "-jar", "/app.war"]
|