diff options
Diffstat (limited to 'images/runit-edge/Dockerfile')
-rw-r--r-- | images/runit-edge/Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/images/runit-edge/Dockerfile b/images/runit-edge/Dockerfile new file mode 100644 index 0000000..d0c2040 --- /dev/null +++ b/images/runit-edge/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:edge + +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"] |