From b13d5e6af25ae6de0c9a0e53d8b6600851aea870 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 23 May 2018 11:24:20 +0200 Subject: [PATCH 1/2] Reduce image size and useless process This reduces the image size (using alpine), and removes the `/bin/sh` process by using `ENTRYPOINT` --- beanstalkd/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/beanstalkd/Dockerfile b/beanstalkd/Dockerfile index d05c833..b58a7ff 100644 --- a/beanstalkd/Dockerfile +++ b/beanstalkd/Dockerfile @@ -1,8 +1,7 @@ -FROM debian:wheezy +FROM alpine LABEL maintainer="Johannes Schickling " -ADD install.sh install.sh -RUN sh install.sh && rm install.sh +RUN apk add --no-cache beanstalkd EXPOSE 11300 -CMD ["beanstalkd", "-p", "11300"] +ENTRYPOINT ["/usr/bin/beanstalkd"] From d5b3d6a7801db1ca0c861508d99fc66ca7ec3f02 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 23 May 2018 11:25:59 +0200 Subject: [PATCH 2/2] Update README.md --- beanstalkd/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beanstalkd/README.md b/beanstalkd/README.md index bdbb4de..00fc716 100644 --- a/beanstalkd/README.md +++ b/beanstalkd/README.md @@ -8,3 +8,7 @@ Lightweight image of the latest beanstalkd version $ docker run -d -p 11300:11300 schickling/beanstalkd ``` +### Add configuration parameters like this: +```sh +$ docker run -d -p 11300:11300 schickling/beanstalkd -b /some/dir +```