From a249f02dd8ff50efe595c21189f7276bcf1f41bc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 15 Mar 2022 13:42:10 +0300 Subject: docker: best practices --- Dockerfile | 2 +- docker/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cfdda46..7ba79f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,4 @@ COPY ["cgitize/", "/usr/src/cgitize/"] WORKDIR /usr/src ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"] -CMD python3 -m cgitize.main +CMD ["python3", "-m", "cgitize.main"] diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 5a07263..0bd3944 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -33,4 +33,4 @@ crontab="$schedule /task.sh echo "$crontab" | crontab - -crond -f +exec crond -f -- cgit v1.2.3