Created
August 17, 2019 19:50
-
-
Save mbrezu/6743fd499add997567a1835e5a6ab11d to your computer and use it in GitHub Desktop.
Docker based script to serve a folder over HTTP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem first arg: path to serve | |
rem second arg: port to use | |
docker run -it --rm -p %2:80 -v %1:/usr/share/nginx/html jrelva/nginx-autoindex:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment