summaryrefslogtreecommitdiff
path: root/images/runit/Dockerfile
blob: 9ec17b761f13a6cc8c881a15f19a1326e13c4d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM alpine:3.5

RUN apk add --no-cache sudo shadow runit

# runit
ADD runit/run /app/runit/run
ONBUILD ADD service /etc/service
# Make sure all service and log files are executable
ONBUILD RUN find -L /etc/service \( -name run -or -name finish -or -name down \) -exec chmod +x {} \;

# If supplied as "ENTRYPOINT foo" it will be wrapped in "/bin/sh -c",
# but that will swallow signals and we rely on those
ONBUILD RUN chmod +x /app/runit/run
ONBUILD ENTRYPOINT ["/app/runit/run"]