123456789101112131415 |
- # 基础镜像
- FROM openjdk:8
- # author
- MAINTAINER landian
- # 挂载目录
- VOLUME /home/landian
- # 创建目录
- RUN mkdir -p /home/landian
- # 指定路径
- WORKDIR /home/landian
- # 复制jar文件到路径
- COPY ./jar/*.jar /home/landian/landian.jar
- # 启动应用
- ENTRYPOINT ["java","-jar","landian.jar"]
|