I think this might be The End (2012)
In addition to people inexplicably disappearing when out of sight, there are a couple key things that line up with your description.
The bikes and the dogs:
Hours later, the remaining four – Felix, Eva, Sara and Maribel –
arrive at a caravan park, but it too is completely deserted. They find
bicycles, collect some food, and decide to ride to the nearest town,
but just as they are about leave they are suddenly surrounded by a
pack of ravenous German Shepherd dogs, which begin to attack them.
They are forced to abandon the food and flee for their lives on the
bicycles, with the dogs in hot pursuit, but just as the pack is about
to catch Sara, the dogs inexplicably turn and run the other way as if
in fear of something ahead of the group. Moments later, Felix, who is
riding in front, hears the panicked Sara sobbing and calling to him
not to leave her; he tries to reassure her, but moments later he
realises he can no longer hear her, and when he, Maribel and Eva stop,
Sara has vanished, and only the bicycle she was riding remains on the
side of the road.
And the ending with a boat:
Now apparently the only survivors of the catastrophe, Felix and Eva
sail out to sea. Felix reveals that, at the car crash site, he had
also found the torn-out final page of Ãngel's prophetic sketchbook,
which seems to indicate that only Eva will survive. They go to sleep
that night on the yacht, expecting that Felix will vanish, but they
awake the next morning both still alive and together. The final scene
shows the boat sailing into an unknown future as it fades out of sight
into a luminous mist.
The reason this was so hard to find is that it's actually a Spanish film. After multiple failed searches that only led me to "Don't Blink" (the other answer), and failed attempts to search for films listed as similar to "Don't Blink", I decided to scan through the "Don't Blink" reviews on IMDB to see if anyone compared it to other films. That's where someone mentioned "The End".