Thanks for sharing this, it's helpful while I am learning docker.
To get this to work in portainer I had to remove these lines:
build:
context: ./build
dockerfile: Dockerfile
I also changed the image to latest
image: tailscale/tailscale:stable
Then the container deploy successfully