Investigators say the fire broke out around 11am as one victim was repairing the vessel.
The second victim went in to try to rescue his co-worker.
Police have not released the names of the victims. One was 31 years old and the other was 41, officials said.
The cause of the fire is under investigation.