I have a docker compose file with a windows container service. The command section takes a multiline batch command.
command:>
cmd /c "
if "%build%"=="release" (
cd some_dir ) else (cd other_dir) &&
7z.exe a some_z * &&
last_command & exit 0 "
with the if statement the multiline batch command always fails. Does anyone know why ? Thanks.