Multiarch Docker image for KeyDB
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
keydb/Dockerfile

19 lines
740 B

FROM alpine AS build
RUN apk add bash build-base coreutils curl-dev git libunwind-dev linux-headers musl-dev openssl-dev perl util-linux-dev
WORKDIR /tmp
RUN git clone --branch v6.3.1 https://github.com/Snapchat/KeyDB.git --recursive;
WORKDIR /tmp/KeyDB
RUN make -j$(nproc) BUILD_TLS=yes;
WORKDIR /tmp/KeyDB/src
RUN strip keydb-server keydb-cli
FROM alpine
COPY --from=build /tmp/KeyDB/src/keydb-server /tmp/KeyDB/src/keydb-cli /usr/local/bin/
RUN apk add libcurl libuuid libgcc libunwind libstdc++ bash
RUN ldd /usr/local/bin/keydb-server /usr/local/bin/keydb-cli
RUN ln -s /usr/local/bin/keydb-cli /usr/local/bin/redis-cli
ADD entrypoint.sh liveness.sh readiness.sh /
VOLUME /data
WORKDIR /data
EXPOSE 6379
ENTRYPOINT ["/entrypoint.sh"]