浏览代码

dockerfile: update

Yi 6 月之前
父节点
当前提交
ad1b361c80
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      Dockerfile
  2. 2 0
      docker-compose.yml

+ 2 - 0
Dockerfile

@@ -24,6 +24,8 @@ WORKDIR /app/kpt-pasture
 COPY --from=0 /app/kpt-pasture/config/ /app/kpt-pasture/bin/config/
 COPY --from=0  /app/kpt-pasture/bin/kptPasture /app/kpt-pasture/bin/kptPasture
 
+RUN ls -l /app/kpt-pasture && RUN  /app/kpt-pasture/config && RUN /app/kpt-pasture/bin
+
 EXPOSE 8090
 VOLUME ["/app/kpt-pasture/logger","/app/kpt-pasture/bin/config","/app/kpt-pasture/files"]
 

+ 2 - 0
docker-compose.yml

@@ -12,6 +12,8 @@ services:
     environment:
       - APP_ENVIRONMENT=production
       - DTM_WORK_DIR=/app/kpt-pasture/bin
+    ports:
+      - "8091:8090"
     command: [ "/app/kpt-pasture/bin/kptPasture","crontab" ]
   kpt-dtm-http:
     privileged: true