We will go through the needed steps to deploy Wasp on a single UBI9 image.
Building is done with the build.sh
file:
wasp build
on the user's computer- Building the client app
- Overriding the default Dockerfile
- There might be a less violet way to do this (using the existing Dockerfile extensions method) but I found this to be easiest to implemnet
- Building the container and running it (confirming it works)
Additional step: Setting up the main.wasp
to support serving the client from the Express app. We need to modify the app so we can use only a single container.
- History based routing doesn't work (Going to
/
will load theindex.html
, but going to/page
won't!)- It's probably possible to fix this without modifying Wasp
- ... but it's probably better for us to enable 1st party support for using a single container