HNHacker News
TopNewBestAskShowJobs

Sinaptika

3 karma · joined August 21, 2017

submissionscomments
Sinaptika··on How to Write Dockerfiles for Python Web Apps
Process reaping and signal forwarding are solved by using tini. You can call if from inside the container, by installing it and then changing the entrypoint/cmd. You can also specify it in your docker run/docker create command by adding "--init" I haven't seen the phusion base images in production in almost a year. Usually when an organization gets more experience in building images, they use better solutions then phusion images.

tldr

Don't use Phusion base images. If you need ssh and logrotate and etc, use lxd or a vm.

Sinaptika··on How to Write Dockerfiles for Python Web Apps
I agree on base image point. Although if we have python apps in the image, it should not matter (both 2-alpine3.7 and 3-alpine3.8 work ok). Systemd vs sysv is not an issue in docker containers since it's (mostly) not used. If you are using an init system, you are probably using tini (included in recent Docker) or supervisord (usually used for older/legacy c/c++ apps).