Fix a few Dockerfile issues and update R to 3.x [again]

Same as erasche/docker-rstudio-notebook#1, with `lsb-release` installed before cleaning the apt caches, and without removal of the assignment to `.First` (commit 0bdcb159d0f2209747b6b350ec2a676bc381763e).