While doing this I saw that the entrypoint on the image is different than docker (from Dockerfile of testdata/build-context/global-arg/Dockerfile):
Docker: if [ -z \"$version\" -a \"$version2\" = \"v2\" ]; then echo \"This is correct\"; exit 0; else exit 1; fi
Makisu:
if [ -z \"$version\" -a \"v2\" = \"v2\" ] ; then echo \"This is correct\" ; exit 0 ; else exit 1 ; fi
See: https://github.com/moby/moby/issues/37345#issuecomment-400245466
While doing this I saw that the entrypoint on the image is different than docker (from Dockerfile of testdata/build-context/global-arg/Dockerfile):
Docker:
if [ -z \"$version\" -a \"$version2\" = \"v2\" ]; then echo \"This is correct\"; exit 0; else exit 1; fi
Makisu:if [ -z \"$version\" -a \"v2\" = \"v2\" ] ; then echo \"This is correct\" ; exit 0 ; else exit 1 ; fi
Makisu should not do substitution in the
CMD
andENTRYPOINT
directive (as seen in the list here: https://docs.docker.com/engine/reference/builder/#environment-replacement)