mirror of
https://github.com/KevinMidboe/http-200.git
synced 2025-10-29 09:30:28 +00:00
Init commit
This commit is contained in:
41
README.md
Normal file
41
README.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# http-200
|
||||
|
||||
Simple http C server that always responds 200 to all http requests. Resulting in docker image size smaller than 40 kB (or 3 kB compressed).
|
||||
|
||||
## build
|
||||
|
||||
```bash
|
||||
gcc -o server server.c
|
||||
```
|
||||
|
||||
or using make
|
||||
|
||||
```bash
|
||||
make
|
||||
```
|
||||
|
||||
## run
|
||||
|
||||
```bash
|
||||
./server
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```bash
|
||||
make run
|
||||
```
|
||||
|
||||
## docker
|
||||
|
||||
build using docker with
|
||||
|
||||
```bash
|
||||
docker build -t http-200 .
|
||||
```
|
||||
|
||||
publish (multi-arch) using
|
||||
|
||||
```bash
|
||||
make docker-publish
|
||||
```
|
||||
Reference in New Issue
Block a user