From ff1c099de24237e58ed7931acf3e2f3f40b7adcc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 2 Aug 2021 17:20:27 +0300 Subject: docker: fix CMD handling It was difficult to override CMD (due to the requirement to `activate` the venv), move the `activate` call to entrypoint.sh. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index b722ec7..55e24ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,4 @@ COPY ["cgitize/", "/usr/src/cgitize/"] WORKDIR /usr/src ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] -CMD . /tmp/venv/bin/activate && python3 -m cgitize.main +CMD python3 -m cgitize.main -- cgit v1.2.3