-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (16 loc) · 889 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.3
MAINTAINER AooJ <[email protected]>
# better init system. Yes, it's necessary
# correct forward signals (INT, TERM, HUP and job control)
# and check for zombie process and re-attach it to itself
# I don't like zooooooombie procceses!
RUN apk --update add \
--repository http://dl-4.alpinelinux.org/alpine/edge/community/ tini \
&& apk upgrade \
&& apk -vv info \
&& echo '#!/usr/bin/env sh' > /run/start.sh \
&& echo 'exec $@' >> /run/start.sh \
&& chmod +x /run/start.sh \
&& rm -rf /var/cache/apk/*
CMD ["/bin/sh"]
ENTRYPOINT ["/usr/bin/tini", "-g", "--", "/run/start.sh"]