Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile to serve static files with Caddy #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dontlaugh
Copy link
Contributor

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

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
Copy link
Contributor Author

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

@coke coke added the devops site infra/build/devops label Nov 5, 2023
@dontlaugh dontlaugh marked this pull request as ready for review November 11, 2023 20:48
@2colours
Copy link
Contributor

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. :)

@2colours 2colours mentioned this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops site infra/build/devops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants