Dockerfile 752 B

1234567891011121314
  1. # 基础镜像
  2. FROM hub.yinmaisoft.com/jnpf-devops-agent/base-file-preview-jre:21
  3. # FROM hub.yinmaisoft.com/jnpf-devops-agent/base-file-preview-jre:17
  4. # FROM hub.yinmaisoft.com/jnpf-devops-agent/base-file-preview-jre:11
  5. # FROM hub.yinmaisoft.com/jnpf-devops-agent/base-file-preview-jre:8
  6. LABEL maintainer=jnpf-team
  7. # 将构建产物拷贝到运行时目录中
  8. ADD server/target/kkFileView-*.tar.gz /opt/
  9. # 指定容器内运行端口
  10. EXPOSE 30090
  11. ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-4.4.0-RELEASE/bin
  12. # 指定容器启动时要运行的命令
  13. ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dspring.config.location=/opt/kkFileView-4.4.0-RELEASE/config/application.properties","-jar","/opt/kkFileView-4.4.0-RELEASE/bin/kkFileView-4.4.0-RELEASE.jar"]