Include requirements and how to build application
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
596835a0a6
commit
53eaf066b3
16
README.md
16
README.md
@ -4,11 +4,25 @@
|
|||||||
|
|
||||||
A simple view counter for a website
|
A simple view counter for a website
|
||||||
|
|
||||||
|
### Requirements
|
||||||
|
|
||||||
|
* Go
|
||||||
|
* Docker
|
||||||
|
* Docker Compose (Optional) or Kubernetes (Optional)
|
||||||
|
|
||||||
|
### Build Application
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
go build -a -ldflags '-w'
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
### Build Container
|
### Build Container
|
||||||
|
|
||||||
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.
|
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.
|
Because this is a staticly linked binary with no external runtime 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
|
```bash
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user