caipin 3 年之前
父节点
当前提交
87031fee40
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      deployment/Dockerfile

+ 6 - 6
deployment/Dockerfile

@@ -13,12 +13,12 @@ FROM alpine:3.13
 # 把编译环境中编译好的 chat 复制到生产镜像中的  bin/chat 文件名称 不是目录
 #COPY --from=builder /go/bin/chat /bin/chat
 # /chat 放到根目录
-COPY --from=builder /go/bin/construction_management /construction_management
-COPY --from=builder /go/src/construction_management/config-debug.yaml /config-debug.yaml
-COPY --from=builder /go/src/construction_management/config-uat.yaml /config-uat.yaml
-COPY --from=builder /go/src/construction_management/config-pro.yaml /config-pro.yaml
+COPY --from=builder /go/bin/server /server
+COPY --from=builder /go/src/construction_management/server/config-debug.yaml /config-debug.yaml
+COPY --from=builder /go/src/construction_management/server/config-uat.yaml /config-uat.yaml
+COPY --from=builder /go/src/construction_management/server/config-pro.yaml /config-pro.yaml
 RUN mkdir -p /lib
-COPY --from=builder /go/src/construction_management/lib/*.json /lib/
+COPY --from=builder /go/src/construction_management/server/lib/*.json /lib/
 
 RUN chmod 777 /construction_management/lib/*.json
 RUN chmod 777 /construction_management
@@ -32,7 +32,7 @@ ENV ADDR=:6060
 EXPOSE 6060
 
 # 设置服务入口
-ENTRYPOINT ["sh","-c", "/construction_management" ]
+ENTRYPOINT ["sh","-c", "/server" ]