1 Star 0 Fork 0

黄健翔/RedisBloom

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Rafi Einstein 提交于 2023-02-24 16:01 . Amazon Linux 2 support (#622)
# BUILD redisfab/redistimeseries:${VERSION}-${ARCH}-${OSNICK}
ARG REDIS_VER=6.2.10
# stretch|bionic|buster
ARG OSNICK=buster
# ARCH=x64|arm64v8|arm32v7
ARG ARCH=x64
#----------------------------------------------------------------------------------------------
FROM redisfab/redis:${REDIS_VER}-${ARCH}-${OSNICK} AS builder
ARG REDIS_VER
RUN if [ -f /root/.profile ]; then sed -ie 's/mesg n/tty -s \&\& mesg -n/g' /root/.profile; fi
SHELL ["/bin/bash", "-l", "-c"]
ADD . /build
WORKDIR /build
RUN ./deps/readies/bin/getupdates
RUN ./sbin/setup
RUN set -ex ;\
if [ -e /usr/bin/apt-get ]; then \
apt-get update -qq; \
apt-get upgrade -yqq; \
rm -rf /var/cache/apt; \
fi
RUN if [ -e /usr/bin/yum ]; then \
yum update -y; \
rm -rf /var/cache/yum; \
fi
RUN make fetch
RUN make all
#----------------------------------------------------------------------------------------------
FROM redisfab/redis:${REDIS_VER}-${ARCH}-${OSNICK}
ARG REDIS_VER
ENV LIBDIR /usr/lib/redis/modules
WORKDIR /data
RUN mkdir -p "$LIBDIR"
COPY --from=builder /build/redisbloom.so "$LIBDIR"
EXPOSE 6379
CMD ["redis-server", "--loadmodule", "/usr/lib/redis/modules/redisbloom.so"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/IKglobal/RedisBloom.git
git@gitee.com:IKglobal/RedisBloom.git
IKglobal
RedisBloom
RedisBloom
master

搜索帮助