Simple webserver into docker (uses shared volumes), it is based on node-static
926
Simple webserver into docker (uses shared volumes), it is based on node-static
docker pull jcenzano/webservermakeecho "It works." > /tmp/test.html
docker run --rm -itd -v /tmp:/root/media -p 8080:8080 jcenzano/webserver /root/media -a 0.0.0.0 -p 8080
The previous command offer through HTTP the contents of local /tmp/ dir
http://localhost:8080/test.html, you shold see "It works."The docker container options are the options of node-static
Content type
Image
Digest
Size
113.8 MB
Last updated
about 9 years ago
docker pull jcenzano/docker-webserver