Skip to content

Instantly share code, notes, and snippets.

@smugen
Created October 4, 2013 08:37
Show Gist options
  • Save smugen/6822820 to your computer and use it in GitHub Desktop.
Save smugen/6822820 to your computer and use it in GitHub Desktop.
docker redis service
# RUN apt-get update && apt-get -y install build-essential
FROM mugen/ubuntu-build-essential:latest
# install redis
ADD http://download.redis.io/redis-stable.tar.gz /tmp/
RUN cd /tmp && tar xzf redis-stable.tar.gz
RUN cd /tmp/redis-stable && make
RUN cd /tmp/redis-stable/src && cp redis-server /usr/bin/; cp redis-cli /usr/bin/
# run redis server
CMD ["/usr/bin/redis-server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment