Sign inSign up

avencera/docker-nginx-spa

By avencera

•Updated over 7 years ago

Docker nginx build for SPA

Image
0

220

avencera/docker-nginx-spa repository overview

⁠docker-nginx-static-spa

A simple nginx container that serves Single Page Applications:

  • Redirects all requests to the index.html file
  • Assets compression using gzip in stylesheets and javascript files.

Docker Hub⁠

Very small size: ~7 MB (alpine based). Uses about 2 MB RAM when running.

⁠Instructions

Dockerfile:

FROM avencera/docker-nginx-spa:latest
COPY /app/dist /var/www/html

In the example above, the production build of the app is in the local dist folder and is moved to the default nginx serve path to be served.

⁠License

MIT

Tag summary

Content type

Image

Digest

Size

6.7 MB

Last updated

over 7 years ago

docker pull avencera/docker-nginx-spa