From 8a6119551b35031387e06d6aa0cb3e95d72a40a2 Mon Sep 17 00:00:00 2001 From: crystaldust Date: Tue, 22 Apr 2014 10:14:10 +0000 Subject: [PATCH] Add the memcache(d) Dockerfile --- .../images/{memcached => memcache}/.gitkeep | 0 dockerfiles/images/memcache/Dockerfile | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+) rename dockerfiles/images/{memcached => memcache}/.gitkeep (100%) create mode 100644 dockerfiles/images/memcache/Dockerfile diff --git a/dockerfiles/images/memcached/.gitkeep b/dockerfiles/images/memcache/.gitkeep similarity index 100% rename from dockerfiles/images/memcached/.gitkeep rename to dockerfiles/images/memcache/.gitkeep diff --git a/dockerfiles/images/memcache/Dockerfile b/dockerfiles/images/memcache/Dockerfile new file mode 100644 index 000000000000..2466c1f5bbef --- /dev/null +++ b/dockerfiles/images/memcache/Dockerfile @@ -0,0 +1,26 @@ +FROM ubuntu + +# Set the file maintainer (your name - the file's author) +MAINTAINER Borja Burgos + +ENV DEBIAN_FRONTEND noninteractive + +# Update the default application repository sources list +RUN apt-get update + +# Install Memcached +RUN apt-get install -y memcached + +# Port to expose (default: 11211) +EXPOSE 11211 + +# Default Memcached run command arguments +# Change to limit memory when creating container in Tutum +CMD ["-m", "64"] + +# Set the user to run Memcached daemon +USER daemon + +# Set the entrypoint to memcached binary +ENTRYPOINT memcached +