I need to execute PowerShell-script and after launch nginx.exe in my Windows-container, so I've added an entrypoint to my Dockerfile as below:
ENTRYPOINT ["powershell", "C:\nginx\Configure-Nginx.ps1 && C:\nginx\nginx.exe"]
But it doesn't work.
I am noobie with PowerShell... How to make it correctly?
powershell.exeis the CLI of Windows PowerShell, where the pipeline-chaining&&operator isn't supported (it requires PowerShell (Core) v7+; PowerShell (Core)'s CLI ispwsh.exe). To emulate&&, useC:\nginx\Configure-Nginx.ps1; if ($?) { C:\nginx\nginx.exe }ENTRYPOINT ["powershell", "C:\\nginx\\Configure-Nginx.ps1; if ($?) { C:\\nginx\\nginx.exe }"]&&operator