Files
http-rs/readme.md
rattatwinko cc9333fa0f
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
mostly licensing and docker stuff
2026-03-16 12:13:54 +01:00

37 lines
751 B
Markdown

# 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