Dockerfile ignores local source code
This statement in the Dockerfile https://gitlab.in2p3.fr/escape2020/wp3/eossr/-/blob/master/Docker/Dockerfile#L5
RUN pip install https://gitlab.in2p3.fr/escape2020/wp3/eossr/-/archive/master/eossr-master.tar
This means that a developer cannot modify the code and create a Docker image from the local copy. The Docker build will always ignore the content of the local copy and use whatever is in the tar file stored in the gitlab archive.
This also means that trying to build a container for a specific version by checking out a tagged version of the git repository will not work. The Docker build will always revert to whatever is in the tar file stored in the gitlab archive.
The only way to create a Docker container with modified code using this Dockerfile is to compile the code, package it as a tar file, upload it to the gitlab archive and label it as the current latest live version. However, doing so would mean that anyone else who tried to build a container using this Dockerfile would also get the modified version.
The Dockerfile should be placed at the root of the project and it should install the library from the local source code, or the project should provide a shell script that tells docker build
to use different locations for the Dockerfile and build context.