-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
27 lines (22 loc) · 831 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
FROM redis/redis-stack-server:7.0.6-RC8 AS redis-stack
FROM redis:7-bookworm
RUN ln -sf /bin/bash /bin/sh
RUN apt-get update && apt-get install -y ca-certificates procps && apt-get clean
FROM python:3.10 AS builder
WORKDIR /home
COPY . .
WORKDIR /home/server
RUN pip3 install -r requirements.txt
RUN ln -sf /bin/bash /bin/sh
RUN apt-get update && apt-get install -y ca-certificates procps && apt-get clean
RUN apt-get update && apt-get install -y redis-server
RUN apt-get update && apt-get install -y npm
COPY --from=redis-stack /opt/redis-stack/lib/redisearch.so /opt/redis-stack/lib/redisearch.so
COPY --from=redis-stack /opt/redis-stack/lib/rejson.so /opt/redis-stack/lib/rejson.so
WORKDIR /home
RUN npm ci
RUN npm run build
WORKDIR /home/server
RUN python3 download.py
RUN python3 harmonize.py
CMD ["/bin/sh", "script.sh"]