1 Star 0 Fork 0

xl-xueling/redis-roaring

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
FROM redis
ENV ROARING_REDIS_GIT_URL https://github.com/aviggiano/redis-roaring.git
RUN set -ex; \
\
BUILD_DEPS=' \
ca-certificates \
cmake \
gcc \
git \
g++ \
make \
'; \
apt-get update; \
apt-get install -y $BUILD_DEPS --no-install-recommends; \
rm -rf /var/lib/apt/lists/*; \
git clone "$ROARING_REDIS_GIT_URL"; \
cd redis-roaring; \
bash configure.sh; \
mkdir -p build; \
cd build; \
cmake ..; \
make -j; \
cd ..; \
cp build/libredis-roaring.so /usr/local/lib/; \
\
apt-get purge -y --auto-remove $BUILD_DEPS
ADD http://download.redis.io/redis-stable/redis.conf /usr/local/etc/redis/redis.conf
RUN sed -i '1i loadmodule /usr/local/lib/libredis-roaring.so' /usr/local/etc/redis/redis.conf; \
chmod 644 /usr/local/etc/redis/redis.conf; \
sed -i 's/^bind 127.0.0.1/#bind 127.0.0.1/g' /usr/local/etc/redis/redis.conf; \
sed -i 's/^protected-mode yes/protected-mode no/g' /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/xl-xueling/redis-roaring.git
git@gitee.com:xl-xueling/redis-roaring.git
xl-xueling
redis-roaring
redis-roaring
master

搜索帮助