5 releases

0.1.4 Oct 25, 2024
0.1.3 Oct 15, 2024
0.1.2 Oct 15, 2024
0.1.1 Oct 15, 2024
0.1.0 Oct 14, 2024

#806 in Command line utilities

MIT license

12KB

Serve folder like CDN

Installation

cargo install cdn

Run

cdn
# Static will be served at 0.0.0.0:8080

Using it with docker

Docker is based on distroless/cc-debian12

FROM ghcr.io/mashanz/cdn:latest AS runner
WORKDIR /static
COPY . .
ENTRYPOINT ["cdn"]

Dependencies

~16–26MB
~448K SLoC