~bitfehler/k8s.sr.ht

927cce19df76aa4fcfe173bad92fdfa2a5e5719d — Conrad Hoffmann 1 year, 4 months ago 9329fbb
redis: add Dockerfile for a simple redis container
1 files changed, 10 insertions(+), 0 deletions(-)

A redis/Dockerfile
A redis/Dockerfile => redis/Dockerfile +10 -0
@@ 0,0 1,10 @@
FROM alpine:3.18

RUN apk --no-cache add redis ca-certificates doas
RUN echo "permit nopass root" >> /etc/doas.d/doas.conf

RUN mkdir /data && chown redis:redis /data
VOLUME /data
WORKDIR /data

ENTRYPOINT ["/usr/bin/doas", "-u", "redis", "/usr/bin/redis-server", "--protected-mode", "no"]