From b13d5e6af25ae6de0c9a0e53d8b6600851aea870 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 23 May 2018 11:24:20 +0200 Subject: [PATCH] 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"]