Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
Created October 3, 2014 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbiesecke/812a623f604057ebc003 to your computer and use it in GitHub Desktop.
Save dbiesecke/812a623f604057ebc003 to your computer and use it in GitHub Desktop.
docker-memcached-ubuntu
############################################################
# Dockerfile to run Memcached Containers
# Based on Ubuntu Image
############################################################
# Set the base image to use to Ubuntu
FROM ubuntu:latest
# Set the file maintainer (your name - the file's author)
MAINTAINER nated
# 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
CMD ["-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