The http server exports contents in zip file.
All APIs including command line interface, docker container are not yet stable. They can be changed in the feature.
This server is arrival on ghcr.io, github packages container registry.
shell
docker run -p 80:80 -v '/path/to/zip/file:/root.zip' ghcr.io/anatawa12/zip-http-server
You can specify path to zip and listening ports as parameters of docker run.
```shell
docker run \ -p 8080:8080 \ -v '/path/to.zip:/root.zip' \ ghcr.io/anatawa12/zip-http-server \ /root.zip --address [::]:8080
docker run \ -v '/path/dir:/server/' \ -v '/path/to.zip:/root.zip' \ ghcr.io/anatawa12/zip-http-server \ /root.zip --address unix:/server/server.sock
docker run ghcr.io/anatawa12/zip-http-server --help ```
This server is also arrival on [crates.io].
You can install via [cargo] command.
For more options, please see --help
.
shell
cargo install zip-http-server
zip-http-server /path/to/zip/file