You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.0 KiB

1 year ago
1 year ago
  1. # syntax=docker/dockerfile:experimental
  2. # 全局參數
  3. #ENV WORKSPACE=TheValueWillPassFromJenkinsDockerBuild
  4. # 从 Drone 传递过来即可,不需要手动修改
  5. # backendName對應到POM中的artifactId
  6. ARG backendName=demo-athenaopt_backend
  7. ARG runningPath=${backendName}/running
  8. # ***** 打包docker image *****
  9. FROM registry.digiwincloud.com.cn/dwsidecar/dwsidecar-1.0.0.0:1.0.0.33
  10. ARG backendName
  11. ARG runningPath
  12. # 把運行文件夾下的所有文件複製到 image 中
  13. # Drone 已将运行包复制到 running 目录下,此处将 running 目录下的文件复制到 Docker 容器的工作目录下
  14. COPY ${runningPath} /${backendName}
  15. WORKDIR /${backendName}
  16. RUN pwd
  17. RUN ls
  18. RUN chmod +x ./platform/bin/run.sh \
  19. && chmod +x ./platform/bin/stop.sh \
  20. && chmod +x ./platform/bin/docker/dockerEnv.sh \
  21. && chmod +x ./platform/bin/docker/dockerEnvReplace.sh \
  22. && chmod +x ./platform/bin/docker/dockerRun.sh
  23. EXPOSE 22620
  24. ENTRYPOINT ["/demo-athenaopt_backend/platform/bin/docker/dockerRun.sh"]