Skip to content

Instantly share code, notes, and snippets.

@dz0ny
Last active August 29, 2015 14:03
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 dz0ny/975bbb6e55b1f5454343 to your computer and use it in GitHub Desktop.
Save dz0ny/975bbb6e55b1f5454343 to your computer and use it in GitHub Desktop.
FROM ubuntu
ENV REDIS_PORT 3456
RUN apt-get install -y -q software-properties-common
RUN add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
RUN apt-get update
RUN apt-get install redis-server
CMD redis-server --port $REDIS_PORT
# By default it will run on port 3456
# If you want to run on different port docker run -e REDIS_PORT=1234 redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment