1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| vim Dockerfile
ARG REDIS_VER=7.0.5 ARG ARCH=x64 ARG OSNICK=bullseye
FROM redisfab/redis:${REDIS_VER}-${ARCH}-${OSNICK}
ENV LD_LIBRARY_PATH /usr/lib/redis/modules ENV REDISGEARS_MODULE_DIR /var/opt/redislabs/lib/modules ENV REDISGEARS_PY_DIR /var/opt/redislabs/modules/rg ENV REDISGRAPH_DEPS libgomp1 git
WORKDIR /data RUN apt-get update -qq RUN apt-get upgrade -y RUN apt-get install -y --no-install-recommends ${REDISGRAPH_DEPS}; RUN rm -rf /var/cache/apt
COPY ./redisbloom.so /usr/lib/redis/modules/redisbloom.so
ENTRYPOINT ["redis-server"] CMD ["--loadmodule", "/usr/lib/redis/modules/redisbloom.so", \ "Plugin", "/var/opt/redislabs/modules/rg/plugin/gears_python.so"]
|