-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
26 lines (21 loc) · 1 KB
/
Dockerfile
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
FROM redislabsmodules/rmbuilder:latest as builder
# Build the source
ADD . /REDEX
WORKDIR /REDEX
RUN set -ex;\
make clean; \
make all;
# Package the runner
FROM redis:latest
ENV LIBDIR /usr/lib/redis/modules
WORKDIR /data
RUN set -ex;\
mkdir -p "$LIBDIR";
COPY --from=builder /REDEX/src/rxgeo.so "$LIBDIR"
COPY --from=builder /REDEX/src/rxkeys.so "$LIBDIR"
COPY --from=builder /REDEX/src/rxsets.so "$LIBDIR"
COPY --from=builder /REDEX/src/rxzsets.so "$LIBDIR"
COPY --from=builder /REDEX/src/rxhashes.so "$LIBDIR"
COPY --from=builder /REDEX/src/rxlists.so "$LIBDIR"
COPY --from=builder /REDEX/src/rxstrings.so "$LIBDIR"
CMD ["redis-server", "--loadmodule", "/usr/lib/redis/modules/rxgeo.so", "--loadmodule", "/usr/lib/redis/modules/rxkeys.so", "--loadmodule", "/usr/lib/redis/modules/rxsets.so", "--loadmodule", "/usr/lib/redis/modules/rxzsets.so", "--loadmodule", "/usr/lib/redis/modules/rxhashes.so", "--loadmodule", "/usr/lib/redis/modules/rxlists.so", "--loadmodule", "/usr/lib/redis/modules/rxstrings.so"]