While I was doing a looot of tests, I figured out that if I add this:
RUN sed 's/\r//g' /tmp/install-nginx > /tmp/install-nginx
Before this:
RUN /tmp/install-nginx
Everything works fine!
. I think problem is breaklines in Windows are different from Linux, and it was causing the problem.
Ps.:
When I said that work well with this RUN bash /tmp/install-nginx was my mistake, because this step was failed.
But the question continues… Is it a bug, or still it my mistake? ![]()