Sign inSign up

stephenafamo/spa-nginx

By stephenafamo

Updated about 7 years ago

An NGINX image for serving single page applications

Image
0

163

stephenafamo/spa-nginx repository overview

SPA Nginx

A docker image for routing all requests to a single file.

Usage

docker run -d \
    --name my-spa \
    -v path/to/public:/var/www/static \
    stephenafamo:spa-nginx:1.0.0
  • Serves static files from /var/www/static. You should mount your public directory here.
  • If the file does not exist, uses index.html.
  • If index.html does not exist, gives a 404.

Tag summary

Content type

Image

Digest

Size

48.3 MB

Last updated

about 7 years ago

docker pull stephenafamo/spa-nginx