tpotce/docker/tanner/redis/Dockerfile
t3chn0m4g3 1da35284be update, tweaking, add
add wordpot incl. json logging with activated plugins
bump snare, tanner, phpox, tanner_redis to latest master and to alpine 3.19
2024-03-11 17:33:53 +01:00

24 lines
483 B
Docker

FROM alpine:3.19
#
# Include dist
COPY dist/ /root/dist/
#
# Setup apk and redis
RUN apk -U --no-cache add redis shadow && \
cp /root/dist/redis.conf /etc && \
#
# Setup user and group
groupmod -g 2000 redis && \
usermod -u 2000 redis && \
#
# Clean up
apk del --purge \
shadow && \
rm -rf /root/* && \
rm -rf /tmp/* /var/tmp/* && \
rm -rf /var/cache/apk/*
#
# Start redis
STOPSIGNAL SIGKILL
USER redis:redis
CMD redis-server /etc/redis.conf