collection.dockerfile/alpine/redis/Dockerfile
2022-05-24 23:36:14 +08:00

8 lines
355 B
Docker

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"]