Hello All,
I had this problem after generating the Mendix docker rootfs images (mendix-rootfs:app and mendix-rootfs:builder) on Windows and trying to build the mendix app image on linux.
The solution was to convert the line endings from Windows (\r\n) to Linux (\n) in the file ./scripts/startup.py from docker-mendix-buildpack.
If you notice the error, the message says exactly this on the first line of the above mentioned file:
‘python3\r’: No such file or directory
You can use Notepad++ or VS Code to convert to Linux line endings.
Maybe a better solution is to configure your git to handle the line endings for you. On your windows machine:
git config --global core.autocrlf true
Same Problem here, anyone a solution?
I am getting same error while building image. Any suggestion on this?
I too faced the same issue while building the image, I found the solution to it if you build using the master branch's dockerfile, clone this particular tag v5.0.3 which runs without any problem.
Ensure to store the .MDA file stored in project folder and You have to unzip the .MDA deployment package file to solve this problem
yes I have faced the same issue in docker image creation we have to verify for the apt version of docker build pack version from the docker build pack Git hub repo and find the tag here (https://github.com/mendix/docker-mendix-buildpack/tags) and install this build pack version would be helpful.
The error is caused by the implicit conversion of \n to \r\n when you checkout files from git repo. It can be disabled by following: https://stackoverflow.com/questions/21822650/disable-git-eol-conversions