mostly licensing and docker stuff
All checks were successful
Compile to Binary / build-linux (push) Successful in 50s
Compile to Binary / build-linux-musl (push) Successful in 1m6s
Compile to Binary / build-windows (push) Successful in 1m27s

This commit is contained in:
2026-03-16 12:13:54 +01:00
parent 39bf977604
commit cc9333fa0f
6 changed files with 801 additions and 38 deletions

36
readme.md Normal file
View File

@@ -0,0 +1,36 @@
# http-rs
Simple webserver, designed to be minimal and just work.
```
./http-rs PORT HTMLFILE
./http-rs 8080 ./dir/
```
## Docker
This can be run within a docker container. And tbh its very simple!
You should use MUSL, and alpine for this.
example dockerfile:
```dockerfile
FROM alpine:3.19 # use alpine, its minimal in size
WORKDIR /app # workdir = app
COPY http-rs ./target/x86_64-unknown-linux-musl/release/http-rs # copy the binary!
COPY app/ /app/ # copy your HTML containing folder to app or some dir
EXPOSE 8080
CMD ["http-rs", "8080", "/app"] # run the app , PORT:8080;DIR:/app
```
### Contributers:
Currently there only is 1 Contributer, myself, that is because
the repository is privated (as of 16/03/2026)
- @rattatwinko