Dockerfile: QIODevice::seek: Cannot call seek on a sequential device

I try to build an application inside a docker container.

If I build this image on my host, all goes well. If I push it to git, hub.docker shows the following error in the build log:

Step 12/22 : RUN qmake /opt/xflr5
---> Running in 026abab3988e
Info: creating stash file /opt/build/.qmake.stash
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
Removing intermediate container 026abab3988e
---> e032d94fd731
Step 13/22 : RUN make
---> Running in 69db13aebe2b
g++ -Wl,-O1 -Wl,-rpath,/usr/local/lib -o xflr5 -L/usr/local/lib -lQt5Gui -lQt5Core -lGL -lpthread
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [xflr5] Error 1
Makefile:235: recipe for target 'xflr5' failed

the corresponding Dockerfile can be find here

Why this happens at hub.docker and not at my host. And how can I resolve this?

Source: StackOverflow