• 注册
    • 查看作者
    • alpine redis镜像dockerfile

      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

    • 0
    • 0
    • 0
    • 116
    • 请登录之后再进行评论

      登录
    • 做任务
    • 实时动态
    • 偏好设置
    • 单栏布局 侧栏位置: