Ok, I should change my question as I just figured out what’s wrong. I’m missing the files next to the Dockerfile when just pasting the Dockerfile to Portainer and hitting build.
So the right question would be “How to build the image from the supplied Dockerfile using Portainer”. Manual build with the additional files in the same path works.
That’s what I understand. Don’t get why they made it so though.
You have the possibility to “add files” next to your Dockerfile and I tried giving it all the files needed, but still, didn’t manage to build the image so I went manual and did it using Docker directly.
Works as a charm. Too bad build with additional files is not easy with Portainer, while creating a whole Stack is so easy using just a docker-compose.yml, etc.
Thanks for the response!