浏览代码

add exec command to entrypoint

Yeuoly 6 月之前
父节点
当前提交
86dc39ec99
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -35,4 +35,4 @@ ENV PLATFORM=$PLATFORM
 ENV GIN_MODE=release
 
 # run the server, using bash as the entrypoint to recycle resources
-CMD ["/bin/bash", "-c", "/app/main"]
+CMD ["/bin/bash", "-c", "exec /app/main"]