forked from RedisTimeSeries/RedisTimeSeries
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 714 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
#----------------------------------------------------------------------------------------------
FROM redis:bullseye AS redis
FROM debian:bullseye-slim AS builder
SHELL ["/bin/bash", "-l", "-c"]
WORKDIR /build
COPY --from=redis /usr/local/ /usr/local/
ADD . /build
RUN ./deps/readies/bin/getupdates
RUN ./deps/readies/bin/getpy3
RUN ./system-setup.py
RUN make fetch build
#----------------------------------------------------------------------------------------------
FROM redis:bullseye
WORKDIR /data
RUN mkdir -p /usr/lib/redis/modules
COPY --from=builder /build/bin/redistimeseries.so /usr/lib/redis/modules/
EXPOSE 6379
CMD ["redis-server", "--loadmodule", "/usr/lib/redis/modules/redistimeseries.so"]