tpotce/docker/tanner/redis/Dockerfile
2020-01-03 14:06:29 +00:00

19 lines
391 B
Docker

FROM redis:alpine
#
# Include dist
ADD dist/ /root/dist/
#
# Setup apt
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add redis && \
cp /root/dist/redis.conf /etc && \
#
# Clean up
rm -rf /root/* && \
rm -rf /tmp/* /var/tmp/* && \
rm -rf /var/cache/apk/*
#
# Start conpot
STOPSIGNAL SIGKILL
USER nobody:nobody
CMD redis-server /etc/redis.conf