I am new to Docker. I am using the Copy command to copy some files and its working fine. But when I add those Copy Commands to IF/ElSE statement it stopped working and showing an error returned a non-zero code: 127
. Please find below the code I am using.
RUN if [ "$FRONT_END_BUILD" = "false" ]; then \
echo "front resources need not to copy" $FRONT_END_BUILD; \
else \
COPY --from=build /application/test.php /application/test.php;\
COPY --from=build /application/reactPage.blade.php /application/reactPage.blade.php;\
COPY --from=build /application/reactPageBlank.blade.php /application/reactPageBlank.blade.php;\
fi