zyc-dockerfile 299 B

123456789101112131415
  1. # 基础镜像
  2. FROM openjdk:8
  3. # author
  4. MAINTAINER landian
  5. # 挂载目录
  6. VOLUME /home/landian
  7. # 创建目录
  8. RUN mkdir -p /home/landian
  9. # 指定路径
  10. WORKDIR /home/landian
  11. # 复制jar文件到路径
  12. COPY ./jar/*.jar /home/landian/landian.jar
  13. # 启动应用
  14. ENTRYPOINT ["java","-jar","landian.jar"]