|
1 year ago | |
---|---|---|
.gitignore | 1 year ago | |
Dockerfile | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
main.go | 1 year ago |
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
.
sudo docker run -p 8080:8080 -v $(pwd)/myhtmlfiles:/html -e DIR_TO_SERVE=/html -d bn4t/serve