From f0d2999ad07e2765158612aa4d502ae28b9c0cf3 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 1 Aug 2021 17:53:45 +0300 Subject: docker: fix Dockerfile after messing with requirements.txt --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 5378dd1..b722ec7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,13 @@ ARG ssh_sock_path="$ssh_sock_dir/ssh-agent.sock" ENV SSH_AUTH_SOCK "$ssh_sock_path" COPY ["requirements.txt", "/tmp/"] -RUN pip3 install -r /tmp/requirements.txt +RUN python3 -m venv /tmp/venv && \ + . /tmp/venv/bin/activate && \ + python3 -m pip install -r /tmp/requirements.txt COPY ["docker/entrypoint.sh", "/"] COPY ["cgitize/", "/usr/src/cgitize/"] WORKDIR /usr/src ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] -CMD ["python3", "-m", "cgitize.main"] +CMD . /tmp/venv/bin/activate && python3 -m cgitize.main -- cgit v1.2.3