diff --git a/.docker/Dockerfile b/.docker/Dockerfile
index 9bbf0f56556e1a70f3971aedd3c8ee01e481afe2..dac12f9161bbc6b8060082c190dd27a82ab5ccc1 100644
--- a/.docker/Dockerfile
+++ b/.docker/Dockerfile
@@ -15,10 +15,10 @@ RUN apt-get update && \
      libxml2 \
 	 -y
 COPY .docker/wait-for-it.sh /wait-for-it.sh
-ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/master \
+ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/dev \
    pylib_version.json
 RUN git clone https://gitlab.com/caosdb/caosdb-pylib.git && \
-   cd caosdb-pylib && pip3 install .
+   cd caosdb-pylib && git checkout dev && pip3 install .
 ADD https://gitlab.com/api/v4/projects/13656965/repository/branches/master \
    model_version.json
 RUN git clone https://gitlab.com/caosdb/caosdb-models.git && \