2014-04-22 15:44:10 +05:30
|
|
|
FROM ubuntu
|
|
|
|
|
|
|
|
# Set the file maintainer (your name - the file's author)
|
|
|
|
MAINTAINER Borja Burgos <borja@tutum.co>
|
|
|
|
|
|
|
|
# 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
|
2014-08-30 18:42:53 +05:30
|
|
|
# Change to limit memory when creating container in Tutum
|
2014-04-22 15:44:10 +05:30
|
|
|
CMD ["-m", "64"]
|
|
|
|
|
|
|
|
# Set the user to run Memcached daemon
|
|
|
|
USER daemon
|
|
|
|
|
|
|
|
# Set the entrypoint to memcached binary
|
|
|
|
ENTRYPOINT memcached
|
|
|
|
|