Last active
August 29, 2015 14:02
-
-
Save shovon/547a88e67c2613cde50a to your computer and use it in GitHub Desktop.
Download and install Redis from source, in Docker
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:14.04 | |
RUN apt-get update; apt-get install -y wget build-essential | |
RUN wget http://download.redis.io/releases/redis-2.8.12.tar.gz | |
RUN tar xvfz redis-2.8.12.tar.gz | |
RUN cd redis-2.8.12; make; chmod +x $PWD/src/redis-server; ln -s $PWD/src/redis-server /usr/bin/redis-server | |
EXPOSE 6379 | |
CMD [ "redis-server", "--bind", "0.0.0.0" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment