What is the output when you build the container? Is your dockerfile using a CI system, because that would be very helpful to see what changes are good vs bad, and very helpful. I would try to put your dockerfile into a folder with your scripts, and build the image via: cd ing into where the folder is, and then trying to docker build . , and seeing if it succeeds or not. Can you connect via localhost:8080? I would try to build your container first using the rocker images, and then try building with RStudio Connect. If you are looking for a good walkthrough of using docker, I wrote up a blog on creating containers with R: https://medium.com/@peterjgensler/creating-sandbox-environments-for-r-with-docker-def54e3491a3
Thanks for your answer, after a call with Rstudio engineers we understood that it was more complicated than expected to put Rstudio connect inside docker.
Here are 2 resources which have been usefull:
Right now, with these resources, we have been able to build the image, but we can't deploy during the build (that was the initial use case).