forked from RedisGraph/RedisGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 727 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 727 Bytes
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
26
27
28
29
30
31
32
FROM redis:latest as builder
ENV DEPS "automake peg libtool autoconf python python-setuptools python-pip wget build-essential cmake m4"
# Set up a build environment
RUN set -ex;\
deps="$DEPS";\
apt-get update;\
apt-get install -y --no-install-recommends $deps;\
pip install rmtest;\
pip install redisgraph;
# Build the source
ADD ./ /redisgraph
# Build RedisGraph
WORKDIR /redisgraph
RUN set -ex;\
make clean; \
make;
# Package the runner
FROM redis:latest
ENV LIBDIR /usr/lib/redis/modules
WORKDIR /data
RUN set -ex;\
mkdir -p "$LIBDIR";
COPY --from=builder /redisgraph/src/redisgraph.so "$LIBDIR"
EXPOSE 6379
CMD ["redis-server", "--loadmodule", "/usr/lib/redis/modules/redisgraph.so"]