|
|
|
|
|
by 11235813213455
2790 days ago
|
|
serv() { docker run --rm --name "nginx-${1:-8000}" -p "${1:-8000}:80" "${@:2}" -v $PWD:/usr/share/nginx/html:ro caub/nginx-dev; }
this is what I do to run a local static server, you could run nginx with a config for proxying on docker as wellalso yarn.. bleh, just npm, nowadays it's even faster (on linux) |
|