From 17df410300d14397b963a184ab3fdf854ea10ff3 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 4 Dec 2022 17:04:11 +0100 Subject: docker: make schedule.sh more reusable --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docker/Dockerfile') diff --git a/docker/Dockerfile b/docker/Dockerfile index b9f67db..0f2afdb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -24,7 +24,9 @@ COPY ["docker/entrypoint.sh", "/"] COPY ["docker/get_output_dir.py", "/"] COPY ["docker/schedule.sh", "/"] COPY ["cgitize/", "/usr/src/cgitize/"] -WORKDIR /usr/src +ENV SCHEDULE_ON_START=1 ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] + +WORKDIR /usr/src CMD ["python3", "-m", "cgitize.main"] -- cgit v1.2.3