Closed kevinfalting closed 11 months ago
I tried going down the path of a distroless build, and I could get it working locally, but for some reason the fly servers just couldn't get it to run, and I ran out of patience. It was an unnecessary fafo, but here's as far as I got:
For now, I'll skip the distroless part and just use the official unprivileged nginx image, which appears to work.
Issue Description
With https://github.com/bldg14/eventual/pull/36, we're automatically deploying the server to fly.io via a GitHub action. We should setup the auto deploy for the client as well. It should deploy from
main
on any merge to main, so basically the same rules as the server.I'm hoping to stay in the free tier of fly.io.
Supporting Documentation
We're set up as a monorepo, so we can reference this documentation: https://fly.io/docs/reference/monorepo/
Implementation Details
Let's write a dockerfile for the client so it's built with everything it needs and then runs in a minimal from scratch container similar to how we did the server.
Acceptance Criteria