FROM alpine:3.16 LABEL description="Redis for use with gitea" LABEL maintainer="racken@one27.cf" ENV container docker RUN apk add bash tini redis RUN sed -i -e 's/^bind.*/bind 0.0.0.0/g' -e 's/^protected-mode.*/protected-mode no/g' -e 's/^timeout.*/timeout 60/g' /etc/redis.conf ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/redis-server", "/etc/redis.conf"]