Improve build container section
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
214bdd0358
commit
596835a0a6
12
README.md
12
README.md
@ -6,7 +6,15 @@ A simple view counter for a website
|
||||
|
||||
### Build Container
|
||||
|
||||
Disclaimer! If you use this, you'll need to build the container yourself. My registry is used for my internal infrastructure only and is not publicly available.
|
||||
Disclaimer! If you use this, you'll need to build the container yourself. I have a CICD pipeline setup, but my registry is used for my internal infrastructure only and is not publicly available.
|
||||
|
||||
Because this is a staticly linked binary with no external dependancies, the container literally only contains the binary file, keeping it clean and low in size (6.3MB). I never did understand why people include operating systems in containers.
|
||||
|
||||
```bash
|
||||
|
||||
docker build -t siteviewconter:latest .
|
||||
|
||||
```
|
||||
|
||||
### Example docker-compose.yml
|
||||
|
||||
@ -19,7 +27,7 @@ version: '3.7'
|
||||
services:
|
||||
|
||||
counter:
|
||||
image: registry.deadbeef.codes/siteviewcounter:latest
|
||||
image: siteviewcounter:latest
|
||||
restart: always
|
||||
expose:
|
||||
- "8080"
|
||||
|
Loading…
Reference in New Issue
Block a user