FROM redis:7.4.2-alpine RUN apk add --no-cache gettext \ && mkdir -p /etc/han-redis /usr/local/lib/han COPY redis.conf /etc/han-redis/redis.conf COPY users.acl.template /etc/han-redis/users.acl.template COPY scripts/entrypoint.sh /usr/local/lib/han/entrypoint.sh RUN sed -i 's/\r$//' /usr/local/lib/han/entrypoint.sh \ && chmod 0555 /usr/local/lib/han/entrypoint.sh \ && chmod 0444 /etc/han-redis/* USER redis ENTRYPOINT ["/usr/local/lib/han/entrypoint.sh"]