Simple container to serve a custom directory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bn4t f9d9d468dc Add 'README.md' 10 months ago
.gitignore Intial Commit 10 months ago
Dockerfile Intial Commit 10 months ago
LICENSE Add 'LICENSE' 10 months ago
README.md Add 'README.md' 10 months ago
main.go Intial Commit 10 months ago

README.md

Serve

Dockerhub: https://hub.docker.com/r/bn4t/serve

Simple container to serve a custom directory.

Set the directory with the environment variable DIR_TO_SERVE.

The container listens on port 8080.

Example

sudo docker run -p 8080:8080 -v $(pwd)/myhtmlfiles:/html -e DIR_TO_SERVE=/html -d bn4t/serve