diff options
author | crystaldust <juzhenatpku@gmail.com> | 2014-04-22 10:14:10 +0000 |
---|---|---|
committer | crystaldust <juzhenatpku@gmail.com> | 2014-04-22 10:14:10 +0000 |
commit | 8a6119551b35031387e06d6aa0cb3e95d72a40a2 (patch) | |
tree | 8474f7bb642d409483faf7f41f296358e5202281 /dockerfiles/images | |
parent | 4b8d72dec253f1abbcbb3affe5380522a010bb07 (diff) | |
download | gitea-8a6119551b35031387e06d6aa0cb3e95d72a40a2.tar.gz gitea-8a6119551b35031387e06d6aa0cb3e95d72a40a2.zip |
Add the memcache(d) Dockerfile
Diffstat (limited to 'dockerfiles/images')
-rw-r--r-- | dockerfiles/images/memcache/.gitkeep (renamed from dockerfiles/images/memcached/.gitkeep) | 0 | ||||
-rw-r--r-- | dockerfiles/images/memcache/Dockerfile | 26 |
2 files changed, 26 insertions, 0 deletions
diff --git a/dockerfiles/images/memcached/.gitkeep b/dockerfiles/images/memcache/.gitkeep index e69de29bb2..e69de29bb2 100644 --- a/dockerfiles/images/memcached/.gitkeep +++ b/dockerfiles/images/memcache/.gitkeep diff --git a/dockerfiles/images/memcache/Dockerfile b/dockerfiles/images/memcache/Dockerfile new file mode 100644 index 0000000000..2466c1f5bb --- /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 <borja@tutum.co> + +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 + |