Initial commit

main
Lauri Võsandi 3 months ago
commit 60f51a2067
  1. 2
      .drone.yml
  2. 18
      Dockerfile

@ -0,0 +1,2 @@
kind: template
load: docker-multiarch.yaml

@ -0,0 +1,18 @@
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
VOLUME /data
WORKDIR /data
EXPOSE 6379
CMD ["keydb-server", "/etc/keydb/keydb.conf"]
Loading…
Cancel
Save