Browse Source

优化dockerfile

路佳明 3 weeks ago
parent
commit
0c2ea5d054
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -28,7 +28,7 @@ COPY --from=builder /src/version /app/version
 # COPY ./config/settings.yml /app/settings.yml
 # COPY ./version /app/version
 EXPOSE 8000
-RUN chmod +x /app/observe
+# RUN chmod +x /app/observe # 这条命令会将镜像大小翻倍,copy过来时就是可执行的,不需要多此一举
 CMD ["/app/observe","server","-c", "/app/settings.yml"]