While it doesn't precisely match your description, the film does feature a tense situation where American and Japanese soldiers are forced to work together on a project (building a bridge) under the watchful eye of their respective commanders. The bridge itself becomes a symbolic battleground as the forces clash in a complex and dramatic narrative.
The movie's iconic scene does involve a bridge being built across a river, which might be the detail you're recalling.