This is going to very specific, yet it doesn’t come up in searches, so it could be European, very obscure or one or more key infos could be wrong.
Release date: 2000 - 2020.
Predominantly Caucasian actors.
It was dubbed so we don’t know the original language.
A man works in a beer factory. He is an ex-con, maybe he robbed bank.
His younger brother shows up and he outlines the idea how they should steal gold dust from a wire (?) factory.
The heist goes wrong, cops arrive, the younger brother is shot to death, the older brother is incarcerated and later sentenced to death by electrocution.
That doesn’t happen somehow and the movie ends with him becoming a caretaker of a building or something like that.
As you said some details might be incorrect, misremembered, but this seems to be a close match:
”The Lazarus Project” (2008)
Quotes from the below plots:
”Ben Garvey is on probation but he is a hard worker of the Fort Garry Brewery Company “
”Ben’s brother Rick visits him after being released from prison and invites Ben to heist 12 kg of gold in dust from a laboratory”
”However things go wrong and Ricky, Phelps and a security guard die in the heist and Ben is sentenced to death for the murders.”