From bc9fe1921ea1dd85a6828b12d6c902e2aa0c17b5 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Wed, 29 Sep 2021 01:27:41 +0100 Subject: [PATCH] Instructions for running frontend via docker --- book/src/getting-started/installation.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/book/src/getting-started/installation.md b/book/src/getting-started/installation.md index fe66040..58fbb01 100644 --- a/book/src/getting-started/installation.md +++ a/book/src/getting-started/installation.md @@ -54,7 +54,15 @@ The frontend only needs to be configured to point to the `chartered-web` service. This can be done by changing the bundled `config.json`. This can then be hosted in S3/minio/your preferred -static hosting platform, a Dockerfile is also built which uses [`sfz`][sfz] to run on your own -server without another way of hosting static content. +static hosting platform, a Dockerfile can also be built which uses [`static-web-server`][sws] +to run on your own server without another way of hosting static content: -[sfz]: https://github.com/weihanglo/sfz+```sh +$ DOCKER_BUILDKIT=0 docker build https://github.com/w4/chartered.git#main:chartered-frontend \ + --build-arg BASE_URL=https://my.instance.chart.rs -t chartered-frontend:master +$ docker run -p 8080:80 chartered-frontend:master +$ curl http://127.0.0.1:8080 +... +``` + +[sws]: https://github.com/joseluisq/static-web-server -- rgit 0.1.3