forked from RedisGraph/RedisGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (27 loc) · 815 Bytes
/
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
26
27
28
29
30
31
32
33
34
FROM redis:latest as builder
ENV DEPS "automake peg libtool autoconf python python-setuptools python-pip wget build-essential cmake m4 libgomp1"
# 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";\
apt-get update;\
apt-get install -y --no-install-recommends libgomp1;
COPY --from=builder /redisgraph/src/redisgraph.so "$LIBDIR"
EXPOSE 6379
CMD ["redis-server", "--loadmodule", "/usr/lib/redis/modules/redisgraph.so"]