alpine redis镜像dockerfile
FROM redis:3.2.5-alpine RUN echo "https://mirrors.aliyun.com/alpine/v3.4/main" > /etc/apk/repositories RUN echo "https://mirrors.aliyun.com/alpine/v3.4/community" >> /etc/apk/repositories RUN set -x ; \ apk --no-cache upgrade ; \ apk --no-cache add \ bash \ tzdata \ ; \ rm -rf /var/cache/apk/* ; \ rm -rf /etc/logrotate.d/acpid ; \ cp -R /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ; \ echo 'Asia/Shanghai' > /etc/timezone COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh COPY redis.conf /usr/local/etc/redis/redis.conf CMD ["/usr/local/bin/redis-server","/usr/local/etc/redis/redis.conf"] #!/bin/sh set -e echo "$1" echo "$2" /usr/local/bin/redis-server /usr/local/etc/redis/redis.conf tail -f /dev/null opcache/redis:5.0.14-alpine3.16 opcache/redis:6.0.16-alpine3.16 opcache/redis:6.2.7-alpine3.16 opcache/redis:7.0.5-alpine3.16
请登录之后再进行评论