Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tini as entrypoint in the docker image
This makes sure that the pod terminates immediately, by having the SIGTERM handlers be handled correctly (see pt 2 of https://github.com/krallin/tini?tab=readme-ov-file#why-tini). Without this, the pod can be in 'terminating' state for upto 30s, so deployments take much longer than they should. See https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination for more information. Additionally: - Make image building slightly more efficient, by not copying entire contents of the image each time. Only requirements.txt is copied directly first, so cache busting is less frequent. - Use python -m pip rather than the deprecated pip3 alias
- Loading branch information