mostly licensing and docker stuff
This commit is contained in:
36
readme.md
Normal file
36
readme.md
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user