.exe files are not running in windows docker images

Sunil Bhimanapalli 0 Reputation points
2024-07-09T01:00:22.78+00:00

Hey There,

I am trying to run the following Dockerfile to containerize the Netduino.exe file and would like to use it as a Gitlab runner. However, the .exe files are running in the following Docker Images. Not only Netduino.exe, other .exe files like vs_buildtools.exe is also not running. Could you please assist me to resolve this. Thanks

Dockerfile

=======


FROM mcr.microsoft.com/windows/servercore:ltsc2019

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

USER ContainerAdministrator

ENV NET_DUINO_PATH="C:\Program Files (x86)"

COPY nodejs\Netduino_SDK_v4.3.2.1.exe C:\TEMP\Netduino_SDK_v4.3.2.1.exe

RUN Start-Process -FilePath 'C:\TEMP\Netduino_SDK_v4.3.2.1.exe' -ArgumentList '--quiet', '--wait', '--norestart', '--nocache', '/silent', '/accept' -Wait -NoNewWindow -PassThru;

RUN ls $env:NET_DUINO_PATH;

CMD ["powershell.exe", "C:\TEMP\Netduino_SDK_v4.3.2.1.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,581 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,110 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,560 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,856 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,448 questions
0 comments No comments
{count} votes