scala-js / scala-js-website

Source for https://www.scala-js.org/
259 stars 146 forks source link

Add a Docker-based setup. #601

Closed gzm0 closed 1 year ago

gzm0 commented 1 year ago

Based off #600.

I can't run Ruby 2.7.x on my machine anymore. Docker was the only solution I found. It may help others getting started to contribute to this website as well.

The setup is inspired by that of scala-lang.org, but modified to avoid UID hacker (instead has some volume hackery).

sjrd commented 1 year ago

Nice. This looks way cleaner for sure. Works well on my Windows machine. I'll try on Monday on the "problematic" Linux machine before merging.

gzm0 commented 1 year ago

And even though I have to run docker-compose with sudo, it doesn't create any file owned by root :)

Add your user to the docker group so you don't need to do that.