From 2182b5f67ac80d2e0b83f7d7e17a010992cd8961 Mon Sep 17 00:00:00 2001 From: kfei Date: Fri, 5 Dec 2014 02:33:58 -0800 Subject: [PATCH] Polish README Signed-off-by: kfei --- Dockerfile | 2 +- README.md | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b6d4bd..593d2bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN pacman -Syy && \ pacman -S --noconfirm --quiet --needed base-devel curl libunistring && \ pacman -S --noconfirm --quiet --needed --asdeps git jshon expac -ADD build.sh /build.sh +ADD build.sh / ENTRYPOINT ["/build.sh"] diff --git a/README.md b/README.md index b64ae67..c32a7ec 100644 --- a/README.md +++ b/README.md @@ -15,21 +15,23 @@ docker build -t s6-builder . Use that image to build s6 and its dependencies: ```bash -mkdir dist docker run -it --rm -v $PWD/dist:/dist s6-builder ``` +Once you have s6 compiled, copy that tarball +`dist/s6-${s6_version}-musl-static.tar.xz` to your image's repository. ## Usage -Once you have the s6 compiled, copy the tar ball -`dist/s6-${s6_version}-musl-static.tar.xz` to your image's repository. Use the -`ADD` instruction in Dockerfile to layer s6 binaries onto it, e.g., +Use `ADD` instruction in Dockerfile to layer s6 binaries onto it, e.g., ```bash ADD s6-1.1.3.2-musl-static.tar / ``` -Then you can set you image's entrypoint to s6: +Then you can set your image's entrypoint to s6: ```bash -ENTRYPOINT ["/usr/bin/s6-svscan","/service"] +ENTRYPOINT ["/usr/bin/s6-svscan", "/service"] ``` -Where the `/service` is the *service directory* for s6. +Where `/service` is the *service directory* for s6. + +For more examples, have a look at my +[docktorrent](https://github.com/kfei/docktorrent) repository.