Modularize dockerfile

Seems to work well.
no need for cd, just replace `.` with base