Build files outside and move in & install only !dev dependencies

This commit is contained in:
2022-11-02 22:21:00 +01:00
parent ef3a394657
commit 25ae3a2b65
3 changed files with 19 additions and 15 deletions

View File

@@ -56,15 +56,26 @@ Api endpoints `/text` & `/motd` have the following query options:
## Docker install
Run as a docker container using:
Run as a docker container from github container registry:
```bash
docker run -d \
sudo docker run -d \
--name figlet-http \
-p 3000:3000 \
ghcr.io/kevinmidboe/figlet-http
```
Run as docker locally:
```bash
yarn build; \
sudo docker build -t figlet-http .; \
sudo docker run -d \
--name figlet-http \
-p 3000:3000 \
figlet-http
```
## Systemd service
Example systemd config for running http server.