|
|
- # syntax=docker/dockerfile:experimental
- # 全局參數
- #ENV WORKSPACE=TheValueWillPassFromJenkinsDockerBuild
- # 从 Drone 传递过来即可,不需要手动修改
- # backendName對應到POM中的artifactId
- ARG backendName=app-code_backend
- ARG runningPath=${backendName}/running
- # ***** 打包docker image *****
- FROM registry.digiwincloud.com.cn/dwsidecar/dwsidecar-1.0.0.0:1.0.0.33
- ARG backendName
- ARG runningPath
- # 把運行文件夾下的所有文件複製到 image 中
- # Drone 已将运行包复制到 running 目录下,此处将 running 目录下的文件复制到 Docker 容器的工作目录下
- COPY ${runningPath} /${backendName}
- WORKDIR /${backendName}
- RUN pwd
- RUN ls
- RUN chmod +x ./platform/bin/run.sh \
- && chmod +x ./platform/bin/stop.sh \
- && chmod +x ./platform/bin/docker/dockerEnv.sh \
- && chmod +x ./platform/bin/docker/dockerEnvReplace.sh \
- && chmod +x ./platform/bin/docker/dockerRun.sh
- EXPOSE 22620
- ENTRYPOINT ["/app-code_backend/platform/bin/docker/dockerRun.sh"]
|