Hacker News new | ask | show | jobs
by littlestymaar 820 days ago
> Same reason you'd use Docker for anything, why would it matter if it's Python, PHP or Rust?

I would ask the same question if you were using docker for a Rust project btw.

IMHO Docker mostly make sense when you have projects that require globally installed dependencies (like C or Python).

1 comments

A globally installed dependency such as, say, PHP?
PHP is somewhat different, because there are many providers that can host it for you in a “serverless” fashion, and the deployment process is as easy as it can ever be: just drop the files on the server and call it a day.

As such it makes little sense to deploy a PHP app on a dedicated server where you're responsible for the PHP server. Or when it is, it's because that you have many of such apps, but then deploying them all side by side with their own Apache/Nginx is going to be very wasteful.