reproxy/examples/assets
2021-04-21 03:55:36 -05:00
..
embed switch final image to scratch base 2021-04-14 03:26:20 -05:00
external switch final image to scratch base 2021-04-14 03:26:20 -05:00
README.md Fix typo in assets example 2021-04-21 03:55:36 -05:00

Assets (static files) server

The example demonstrates how to use reproxy.io for static content serving

  • embed is a Dockerfile embedding assets into container and serving them with reproxy. Build it with docker build -t example . and run with docker run -it --rm -p 80:80 example. Hit http://localhost/index.html (or http://localhost) and http://localhost/1.html. Alternatively use docker-compose build && docker-compose up
  • external demonstrates how to serve assets from docker's volume (host's file system). The same as above, but you can also edit files inside assets and see the changed responses.