Last active
August 29, 2015 14:03
-
-
Save dz0ny/975bbb6e55b1f5454343 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
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