Updated windows dockerfile

This commit is contained in:
Elad Solomon 2022-03-30 22:14:21 +03:00 committed by Tomer Lev
parent 1b3719cf29
commit 032f0587f4
2 changed files with 2 additions and 19 deletions

View file

@ -35,23 +35,18 @@ RUN [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePoin
SHELL ["cmd", "/S", "/C"]
# Install prerequisites
RUN choco install powershell-core -y
RUN choco install conan -y
RUN choco install sed -y
RUN choco install winflexbison -y
RUN choco install openssl -y
RUN choco install python -y
# Can't install a proper msys2 because it caused console hanging in the container during docker build.
RUN choco install msysgit -y
RUN choco install sed -y
RUN choco install powershell-core -y
# Set working environment.
RUN setx /M PATH "%PATH%;C:\\Program Files\\Git\\bin"
RUN mkdir C:\build
WORKDIR C:\build
# Configure conan
ADD default C:\Users\ContainerAdministrator\.conan\profiles\default
# Define the entry point for the docker container.
# This entry point starts the developer command prompt and launches the PowerShell shell.
ENTRYPOINT ["C:\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat", "&&", "pwsh.exe", "-NoLogo", "-ExecutionPolicy", "Unrestricted"]