docker pull marcbachmann/static-server
docker run -v $(pwd):/public -e SERVE_DIRECTORY=/public marcbachmann/static-server
HOST: example.com
Will result in serving /public/example.com
Ports are ignored. So example:8080 results in /public/example
If you're using a load balancer, you can pass TRUST_PROXY=loopback
docker run -v $(pwd):/public -e TRUST_PROXY=true marcbachmann/node-static
Content type
Image
Digest
sha256:eb72a1787…
Size
139.3 MB
Last updated
almost 11 years ago
docker pull marcbachmann/static-server