aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-15 13:42:10 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-15 13:42:10 +0300
commita249f02dd8ff50efe595c21189f7276bcf1f41bc (patch)
tree713bf8355358e638ea63c6756dc32edcd1bc8a5a
parentv2.5.0 (diff)
downloadcgitize-a249f02dd8ff50efe595c21189f7276bcf1f41bc.tar.gz
cgitize-a249f02dd8ff50efe595c21189f7276bcf1f41bc.zip
docker: best practices
-rw-r--r--Dockerfile2
-rwxr-xr-xdocker/entrypoint.sh2
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