Feat: scratch docker build
This commit is contained in:
@@ -65,4 +65,16 @@ make STATIC=1
|
||||
The dynamically linked binary is smaller but requires dependencies:
|
||||
libcurl, libcjson and pthread to be on the target machine.
|
||||
|
||||
The static binary is slightly bigger but is fully self contained.
|
||||
The static binary is slightly bigger but is fully self contained.
|
||||
|
||||
### Docker Image
|
||||
|
||||
The [Dockerfile](./Dockerfile) in this repo builds a minimal image with just the static binary and CA certificates.
|
||||
|
||||
```sh
|
||||
docker build -t dns-keeper .
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
> Because the image is just the c binary with ca certs, there is no shell to exec into.
|
||||
> `docker exec` will not work for debugging.
|
||||
Reference in New Issue
Block a user