I haven't seen the movie but know enough of the story to understand that Allied troops had fallen back to Dunkirk for evacuation but were trapped there until transport came.
I also understand that the German army called off the invasion/annihilation of these troops for some reason.
Why did Germany not pounce on this easy opportunity to wipe out large numbers of Allied troops?