summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: a0baf16f17ac9360a6ac827d6161bbbc44158e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM redis/redis-stack-server:latest

COPY . /iredis

RUN apt-get update --fix-missing
RUN apt-get install -yqq python3 python3-pip python-is-python3
RUN python3 -m pip install poetry
WORKDIR /iredis
RUN poetry config virtualenvs.create false
RUN poetry build
RUN pip install dist/iredis*.tar.gz
WORKDIR /
RUN rm -rf .cache /var/cache/apt
RUN rm -rf /iredis

CMD ["sh", "-c", "/opt/redis-stack/bin/redis-stack-server --daemonize yes && iredis"]