Raku / raku.org

Source code for https://raku.org/
https://raku.org/
Artistic License 2.0
70 stars 50 forks source link

Add Dockerfile to serve static files with Caddy #215

Open dontlaugh opened 11 months ago

dontlaugh commented 11 months ago

We add a basic Caddyfile that compiles static assets to ./online and then serves these from the web root /usr/share/caddy inside the container.

404 handlers are TODO

dontlaugh commented 11 months ago

To test:

git clone git@github.com:dontlaugh/raku.org.git
cd raku.org
git switch containerfile
docker build -t raku.org:latest -f Dockerfile .   # or podman
docker run -it -p 5500:5500 raku.org:latest

Then browse to http://localhost:5500

2colours commented 11 months ago

Yes, it worked for me with a stack of WSL, buildah and podman as well, and also, it did a great service to create something similar for the Raku rework. :)