🏡 index : ~doyle/chartered.git

author Jordan Doyle <jordan@doyle.la> 2021-09-29 1:27:41.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2021-09-29 1:27:41.0 +01:00:00
commit
bc9fe1921ea1dd85a6828b12d6c902e2aa0c17b5 [patch]
tree
d3bba7e70b1167222109e7158ca042ed8fe62bab
parent
bf34624ccfa6424666672998aabed0859600131a
download
bc9fe1921ea1dd85a6828b12d6c902e2aa0c17b5.tar.gz

Instructions for running frontend via docker



Diff

 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
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8">...

```


[sws]: https://github.com/joseluisq/static-web-server