1
0
Fork 0
iredis/Dockerfile
Daniel Baumann 031879240c
Adding upstream version 1.9.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 16:57:44 +01:00

18 lines
460 B
Docker

FROM python:3
WORKDIR /iredis
COPY README.md poetry.lock pyproject.toml ./
COPY iredis ./iredis
RUN apt-get update && apt-get install -y --allow-unauthenticated \
redis-server && \
rm -rf /var/lib/apt/lists/*
RUN python3 -m venv iredis_env && \
. iredis_env/bin/activate && \
pip install poetry && \
poetry install --no-dev && \
rm -rf ~/.cache
CMD ["sh","-c","redis-server --daemonize yes && . iredis_env/bin/activate && iredis"]