collection.dockerfile/alpine/redis/Dockerfile
2022-01-17 15:56:05 +08:00

8 lines
357 B
Docker

FROM alpine:latest
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"]