diff --git a/.docker/Dockerfile b/.docker/Dockerfile
index f028bbb1b735d5a25e81a17cb0aa80d519cc4167..5e412efcb6bf6c3e0d0ec7ec1f6ffa877190a8fd 100644
--- a/.docker/Dockerfile
+++ b/.docker/Dockerfile
@@ -21,14 +21,15 @@ RUN apt-get update && \
 
 COPY .docker/wait-for-it.sh /wait-for-it.sh
 ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/dev \
-   pylib_version.json
+  pylib_version.json
+RUN pip install -U pip
 RUN git clone https://gitlab.com/caosdb/caosdb-pylib.git && \
-   cd caosdb-pylib && git checkout dev && pip3 install .
+   cd caosdb-pylib && git checkout dev && pip install .
 # At least recommonmark 0.6 required.
-RUN pip3 install -U html2text pycodestyle pylint recommonmark sphinx-rtd-theme gitignore-parser
+RUN pip install -U html2text pycodestyle pylint recommonmark sphinx-rtd-theme gitignore-parser
 COPY . /git
 RUN rm -r /git/.git \
     && mv /git/.docker/pycaosdb.ini /git/integrationtests
-RUN cd /git && pip3 install .[all]
+RUN cd /git && pip install .[all]
 WORKDIR /git/integrationtests
 CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh --force