diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-15 13:42:10 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-15 13:42:10 +0300 |
commit | a249f02dd8ff50efe595c21189f7276bcf1f41bc (patch) | |
tree | 713bf8355358e638ea63c6756dc32edcd1bc8a5a | |
parent | v2.5.0 (diff) | |
download | cgitize-a249f02dd8ff50efe595c21189f7276bcf1f41bc.tar.gz cgitize-a249f02dd8ff50efe595c21189f7276bcf1f41bc.zip |
docker: best practices
-rw-r--r-- | Dockerfile | 2 | ||||
-rwxr-xr-x | docker/entrypoint.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |