Hi @lgatto, i forked your project and found that the error came from the last line in Dockerfile:
RUN pip3 install jupyter-rsession-proxy==1.2.0 jupyter-server-proxy==1.5.0
which actually undoes some fix I did.
For simplicity, I also commented the installation of R packages in my fork, which imo has nothing to do with this 500 error.