Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/binocarlos/docker-redis

Dockerfile to build redis
https://github.com/binocarlos/docker-redis

Last synced: 11 days ago
JSON representation

Dockerfile to build redis

Awesome Lists containing this project

README

        

docker-redis
============

Dockerfile to build redis

```
FROM ubuntu:12.04

# Update package repository
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install -y python-software-properties

# Init latest redis-server
RUN add-apt-repository -y ppa:chris-lea/redis-server
RUN apt-get update
RUN apt-get install -y redis-server

# we create this for the redis data so it is commong across services
RUN mkdir -p /data/db

ADD ./redis.conf /etc/redis.conf

ENTRYPOINT ["/usr/bin/redis-server", "/etc/redis.conf"]
```