You could get a raspberry pi and a camera module. MotionEye can be installed as the OS. It requires a network connection to your LAN to set it up, but it can be disconnected afterwards. I believe it can be configured to store all files locally.
Edit: Fixed link
Thank you! Didn’t realize it was broken. I’ve updated it.