Skip to content

Instantly share code, notes, and snippets.

@shovon
Last active August 29, 2015 14:02
Show Gist options
  • Save shovon/547a88e67c2613cde50a to your computer and use it in GitHub Desktop.
Save shovon/547a88e67c2613cde50a to your computer and use it in GitHub Desktop.
Download and install Redis from source, in Docker
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