Explorar o código

entrypoint tini

Fabian Peter Hammerle %!s(int64=6) %!d(string=hai) anos
pai
achega
bda9904f72
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Dockerfile

+ 3 - 0
Dockerfile

@@ -3,6 +3,9 @@ FROM alpine:3.8
 RUN find / -xdev -type f -perm /u+s -exec chmod --changes u-s {} \; \
     && find / -xdev -type f -perm /g+s -exec chmod --changes g-s {} \;
 
+RUN apk add tini
+ENTRYPOINT ["/sbin/tini", "-s", "--"]
+
 # $ readelf -l /tmp/go-ipfs/ipfs | grep 'program interpreter'
 #   [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
 RUN apk add libc6-compat