DEV: update gitpod to give user cache write permissions (fix pre-commit)
Currently installing pre-commit hooks gives a permission error, this fixes that. 

In addition, I moved the `pip install` from the gitpod custom build commands to the docker image, so this is done in advance
thx @jorisvandenbossche 