From 06cba6ccd165ca8b224797e37fccb9e63f026d77 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 21 Mar 2020 11:28:17 +0100 Subject: Adding upstream version 1.9.1. Signed-off-by: Daniel Baumann --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..99c0463 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +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"] -- cgit v1.2.3