Skip to content

carlosflorencio/docker-nginx-static-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 iamfreee/docker-nginx-static-spa:latest
COPY /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

About

NGINX image to serve Single Page Applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published