|
|
|
@@ -39,6 +39,33 @@ RUN powershell -Command `
|
|
|
|
|
.\rustup-init.exe -y --default-toolchain stable; `
|
|
|
|
|
Remove-Item .\rustup-init.exe
|
|
|
|
|
|
|
|
|
|
# Install Chocolatey
|
|
|
|
|
RUN ["powershell.exe", "-NoLogo", "-NoProfile", "-Command", `
|
|
|
|
|
"Set-ExecutionPolicy Bypass -Scope Process; `
|
|
|
|
|
[System.Net.ServicePointManager]::SecurityProtocol = `
|
|
|
|
|
[System.Net.SecurityProtocolType]::Tls12; `
|
|
|
|
|
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" `
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Install Git and Rustup via Chocolatey
|
|
|
|
|
RUN ["powershell.exe", "-NoLogo", "-NoProfile", "-Command", `
|
|
|
|
|
"choco install git -y --no-progress; `
|
|
|
|
|
choco install rustup.install -y --no-progress" `
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Install stable Rust toolchain
|
|
|
|
|
RUN ["powershell.exe", "-NoLogo", "-NoProfile", "-Command", `
|
|
|
|
|
"$env:Path += ';C:\\Users\\ContainerAdministrator\\.cargo\\bin'; `
|
|
|
|
|
rustup toolchain install stable-x86_64-pc-windows-msvc; `
|
|
|
|
|
rustup default stable-x86_64-pc-windows-msvc" `
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Install dioxus-cli from git HEAD with cargo
|
|
|
|
|
RUN ["powershell.exe", "-NoLogo", "-NoProfile", "-Command", `
|
|
|
|
|
"$env:Path += ';C:\\Users\\ContainerAdministrator\\.cargo\\bin'; `
|
|
|
|
|
cargo install --git https://github.com/DioxusLabs/dioxus dioxus-cli" `
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Define the entry point for the docker container.
|
|
|
|
|
# This entry point starts the developer command prompt and launches the PowerShell shell.
|
|
|
|
|
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
|
|
|
|
|