docker build instructions

This commit is contained in:
Nazar Kanaev
2022-06-01 13:24:39 +01:00
parent e1a6ccf133
commit a91f64ce9d
4 changed files with 78 additions and 19 deletions

View File

@@ -45,25 +45,7 @@ and pasting the content:
Categories=Internet;
For self-hosting, see `yarr -h` for auth, tls & server configuration flags.
## build
Install `Go >= 1.16` and `gcc`. Get the source code:
git clone https://github.com/nkanaev/yarr.git
Then run one of the corresponding commands:
# create an executable for the host os
make build_macos # -> _output/macos/yarr.app
make build_linux # -> _output/linux/yarr
make build_windows # -> _output/windows/yarr.exe
# ... or start a dev server locally
make serve # starts a server at http://localhost:7070
# ... or build a docker image
docker build -t yarr .
For building from source code, see [doc/build.md](doc/build.md)
## credits