KestrelStaticFileServer is a simple web server for hosting static files. It requires no configuration or security setup, allowing you to quickly expose files over HTTP by overriding the /app/wwwroot/
path with the directory you want to serve.
You can easily deploy the KestrelStaticFileServer using Docker. Here's an example of how to do it:
-
Pull the Docker Image:
docker pull leeroymanea/kestrel-static-file-server:latest
-
Run the Docker Container:
Replace
/path/to/your/static/files
with the directory you want to expose over HTTP.docker run -d -p 80:80 -v /path/to/your/static/files:/app/wwwroot/ leeroymanea/kestrel-static-file-server:latest
This command will start the KestrelStaticFileServer container, exposing your static files on port 80.
You can also use Docker Compose to manage your KestrelStaticFileServer deployment. Here's an example docker-compose.yml
file:
version: '3'
services:
web:
image: leeroymanea/kestrel-static-file-server:latest
ports:
- "80:80"
volumes:
- /path/to/your/static/files:/app/wwwroot/
Replace /path/to/your/static/files
with the directory you want to expose over HTTP.
Then, you can run the following command to start the server:
docker-compose up -d
This will start the KestrelStaticFileServer container in detached mode, exposing your static files on port 80.
This project is licensed under the GPLv3.
If you want to support me, buy a Coffee
Thank you