Skip to content

Instantly share code, notes, and snippets.

@dginther
Created February 14, 2014 22:06
Show Gist options
  • Save dginther/9010407 to your computer and use it in GitHub Desktop.
Save dginther/9010407 to your computer and use it in GitHub Desktop.
############################################################
# 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