@rxlict yes, if the build fails, everything will go pear-shaped. Trying to go ahead will fail.
The important step is to solve the build issue, which will be in how the Dockerfile is constructed.
Can you share which app you're trying to package?
Stick with it : it can be a frustrating process solving the build issues, but once you have success, it's all worth while.