Skip to main content

2 posts tagged with "docker"

View All Tags

Debugging a Docker build that silently dropped all CSS

· 10 min read
Hirusha Adikari
I do stuff sometimes...

I had a bug that looked simple and turned out to be two unrelated bugs wearing a trench coat. The symptom: pnpm run build on a laptop produced a perfectly normal Next.js app, styles and all. The exact same code, built inside the Docker image we ship to production, produced an app with zero CSS. Not broken CSS no CSS. No <link> tags pointing to missing files, no 404s, nothing. The build didn't even try.

alt text

This is the story of tracking that down, because the actual cause was strange enough that it's worth writing up.

My journey self-hosting "Google Photos" for cheap.

· 8 min read
Hirusha Adikari
I do stuff sometimes...

So far, I have been copying all the images to one of my external hard disks from my phone on a weekly basis. I would have already wasted hours doing that. Also, if I accidentally delete an image (also from the Trash), it would be gone forever and I would not be able to back that image up. So, I wanted a one-way photos sync thing that checks and uploads images very regularly. Now that my requirement is clear, I went out to find a solution to this. In this article, I will talk about my journey in coming to the final solution.

Note that this is not a step by step guide for setting up Immich.

alt text