forked from RedisGraph/RedisGraph
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.alpine
44 lines (38 loc) · 924 Bytes
/
Dockerfile.alpine
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
35
36
37
38
39
40
41
42
43
44
###
# Build Stage.
FROM redis:6-alpine as builder
RUN apk add --no-cache \
build-base \
musl-dev \
automake \
make \
cmake \
autoconf \
libtool \
wget \
g++ \
m4 \
libgomp \
python \
py-setuptools \
py-pip \
;\
pip install rmtest;\
pip install redisgraph;
# Install PEG manually (because there is no Alpine package for it).
RUN wget https://www.piumarta.com/software/peg/peg-0.1.18.tar.gz;\
tar xzf peg-0.1.18.tar.gz;\
cd peg-0.1.18;\
make; make install
# Build RedisGraph.
ADD ./ /redisgraph
WORKDIR /redisgraph
RUN set -ex;\
make clean; \
make;
###
# Package Stage.
FROM redis:6-alpine
RUN apk add --no-cache libgomp
COPY --from=builder /redisgraph/src/redisgraph.so /usr/lib/redis/modules/
CMD ["redis-server", "--loadmodule", "/usr/lib/redis/modules/redisgraph.so"]