From fdb01dc7c95e50a2b5ed2b15916bb1f184fce65d Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Fri, 11 Dec 2020 14:31:14 +0100 Subject: [PATCH] README.md: add info about container and server --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index e733c3e..a7d702c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,21 @@ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app w Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. +### Build Container + +You can build a small container that runs a single executable that serves the front end. The web app is baked into the executable. +To build the container, run +```bash +docker build -t . +``` +You can build the container for a different architecture. For example for arm64, run +```bash +docker build -t . --build-arg ARCH=arm64 +``` +See [here](https://golang.org/cmd/go/) for more info about how to build go binaries. + +__Note:__ After [changing the urls](#Where-to-change-the-urls) for the back end you need to rebuild the container with the new urls. + ### regenerate graphql schema, queries and mutations and more Run `npm run generateGQL`