|  | @@ -44,18 +44,18 @@
 | 
	
		
			
				|  |  |  # # 把编译环境中编译好的 chat 复制到生产镜像中的  bin/chat 文件名称 不是目录
 | 
	
		
			
				|  |  |  # #COPY --from=builder /go/bin/chat /bin/chat
 | 
	
		
			
				|  |  |  # # /chat 放到根目录
 | 
	
		
			
				|  |  | -# COPY --from=builder /go/bin/web /server
 | 
	
		
			
				|  |  | -# COPY --from=builder /go/src/construction_management/server/web/config-debug.yaml /config-debug.yaml
 | 
	
		
			
				|  |  | -# COPY --from=builder /go/src/construction_management/server/web/config-uat.yaml /config-uat.yaml
 | 
	
		
			
				|  |  | -# COPY --from=builder /go/src/construction_management/server/web/config-pro.yaml /config-pro.yaml
 | 
	
		
			
				|  |  | +# COPY --from=builder /go/bin/web /bin/server
 | 
	
		
			
				|  |  | +# COPY --from=builder /go/src/construction_management/server/web/config-debug.yaml /bin/config-debug.yaml
 | 
	
		
			
				|  |  | +# COPY --from=builder /go/src/construction_management/server/web/config-uat.yaml /bin/config-uat.yaml
 | 
	
		
			
				|  |  | +# COPY --from=builder /go/src/construction_management/server/web/config-pro.yaml /bin/config-pro.yaml
 | 
	
		
			
				|  |  |  # RUN mkdir -p /lib
 | 
	
		
			
				|  |  | -# COPY --from=builder /go/src/construction_management/server/lib/*.json /lib/
 | 
	
		
			
				|  |  | +# COPY --from=builder /go/src/construction_management/server/lib/*.json /bin/lib/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -# RUN chmod 777 /lib/*.json
 | 
	
		
			
				|  |  | -# RUN chmod 777 /server
 | 
	
		
			
				|  |  | -# RUN chmod 777 /config-debug.yaml
 | 
	
		
			
				|  |  | -# RUN chmod 777 /config-uat.yaml
 | 
	
		
			
				|  |  | -# RUN chmod 777 /config-pro.yaml
 | 
	
		
			
				|  |  | +# RUN chmod 777 /bin/lib/*.json
 | 
	
		
			
				|  |  | +# RUN chmod 777 /bin/server
 | 
	
		
			
				|  |  | +# RUN chmod 777 /bin/config-debug.yaml
 | 
	
		
			
				|  |  | +# RUN chmod 777 /bin/config-uat.yaml
 | 
	
		
			
				|  |  | +# RUN chmod 777 /bin/config-pro.yaml
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  # ENV ADDR=:6060
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -65,7 +65,8 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  # # 设置服务入口
 | 
	
		
			
				|  |  |  # # ENTRYPOINT ["/run.sh"]
 | 
	
		
			
				|  |  | -# ENTRYPOINT ["sh","-c", "/server" ]
 | 
	
		
			
				|  |  | +# 要放到bin 目录下才能运行 在 alpine 环境中
 | 
	
		
			
				|  |  | +# ENTRYPOINT ["sh","-c", "/bin/server" ]
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -87,6 +88,7 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  FROM centos:7
 | 
	
		
			
				|  |  |  # FROM alpine:3.13
 | 
	
		
			
				|  |  | +# 要运行 centos中,可以放在随意的目录中运行
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  # COPY  ./bin/construction_management /
 | 
	
		
			
				|  |  |  ADD /bin/ /
 |