FROM redis:5.0.3-alpine

# ope-redis - Redis server, used by other containers
# Build with docker build -t ope-redis .

#INSTRUCTIONS
# Build the container - shouldn't need any other setup other than linking containers to it

# To copy to offline server use the setup tool

LABEL description="Redis container used by canvas - Image for Open Prison Education"
LABEL version="0.1"

LABEL version="3"
COPY redis.conf.tmpl /etc/redis.conf.tmpl
COPY start.sh /start.sh
RUN chmod +x /start.sh

VOLUME ["/data"]

#CMD ["redis-server", "/etc/redis.conf"]
CMD ["/start.sh"]
