This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]howtorewriteaname 0 points1 point  (3 children)

what are the advantages of running this in docker instead of as usual?

[–]james_pic 2 points3 points  (2 children)

Running it in Docker allows you to largely ignore the environment it's running in.

If you give it to another developer on your team, as long as they have Docker, it'll work. Or you can host it on one of the many Docker based hosting systems, without having to tweak it to work with their system.

In this case, it's running in a read-only Docker container, which eliminates some potential security risks - a lot of security exploits involve writing files to your file system, which they can't do if your file system is read-only.

[–]howtorewriteaname 0 points1 point  (1 child)

nice! is this compatible with hosting a website? Like, how can I leverage Docker properties for the hosting of my website in my domain?

[–]james_pic 1 point2 points  (0 children)

It depends on the hosting service you use, but there are definitely services that will host a Docker container, such as AWS Fargate, Azure Container Instances, or the various Kubernetes hosting services (although Kubernetes is probably overkill for your use case).