Created
February 14, 2014 22:06
-
-
Save dginther/9010407 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
# Dockerfile to run Memcached Containers | |
# Based on Ubuntu Image | |
# Based on Digital Ocean Post | |
# https://www.digitalocean.com/community/articles/docker-explained-how-to-create-docker-containers-running-memcached | |
############################################################ | |
# Set the base image to use to Ubuntu | |
FROM ubuntu:precise | |
# Set the file maintainer (your name - the file's author) | |
MAINTAINER demian@atpay.com | |
# Update the default application repository sources list | |
RUN apt-get update | |
# Install Memcached | |
RUN apt-get install -q -y memcached | |
# Port to expose (default: 11211) | |
EXPOSE 11211 | |
# Default Memcached run command arguments | |
CMD ["-vv", "-m", "64"] | |
# Set the user to run Memcached daemon | |
USER daemon | |
# Set the entrypoint to memcached binary | |
ENTRYPOINT ["memcached"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment