The film will also star Martin Lawrence and Olivia Munn, said The Hollywood Reporter.
Luke will play the role of Howie Summers, an incompetent lawyer who is falsely accused of a bank robbery and finds himself serving a life sentence in prison.
He also co-wrote the script for the untitled project with Buck Ritchey.
The film is set to begin shooting July 11.