浏览代码

Entrypoint/exec fix suggested by @csmith, and some more metadata

pull/9/head
Daniel Oaks 5 年前
父节点
当前提交
357016eab3
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2
    1
      Dockerfile
  2. 1
    1
      run.sh

+ 2
- 1
Dockerfile 查看文件

29
 
29
 
30
 # metadata
30
 # metadata
31
 LABEL maintainer="daniel@danieloaks.net"
31
 LABEL maintainer="daniel@danieloaks.net"
32
+LABEL description="Oragono is a modern, experimental IRC server written in Go"
32
 
33
 
33
 # install latest updates and configure alpine
34
 # install latest updates and configure alpine
34
 RUN apk update
35
 RUN apk update
54
 COPY --from=build-env /go/src/github.com/oragono/oragono/oragono.motd /ircd/oragono.motd
55
 COPY --from=build-env /go/src/github.com/oragono/oragono/oragono.motd /ircd/oragono.motd
55
 
56
 
56
 # launch
57
 # launch
57
-CMD /ircd-bin/run.sh
58
+ENTRYPOINT ["/ircd-bin/run.sh"]
58
 
59
 
59
 # # uncomment to debug
60
 # # uncomment to debug
60
 # RUN apk add --no-cache bash
61
 # RUN apk add --no-cache bash

+ 1
- 1
run.sh 查看文件

33
 fi
33
 fi
34
 
34
 
35
 # run!
35
 # run!
36
-/ircd-bin/oragono run
36
+exec /ircd-bin/oragono run

正在加载...
取消
保存