In Part 8, I ripped out SQLite and switched to Postgres. The database was real now — but it still only ran on my laptop. Three terminal tabs.
One for go run, one for Redis, one for Postgres. If I closed any of them, the whole thing fell over. It was time to Dockerize.
The First Dockerfile: 800MB of Regret My first attempt was a single-stage Dockerfile. Copy everything, build, run: FROM golang: