test
This commit is contained in:
@@ -38,18 +38,16 @@ RUN Set-ExecutionPolicy Bypass -Scope Process; `
|
|||||||
[System.Net.SecurityProtocolType]::Tls12; `
|
[System.Net.SecurityProtocolType]::Tls12; `
|
||||||
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||||
|
|
||||||
# Install Git and Rustup via Chocolatey
|
|
||||||
RUN choco install git -y --no-progress
|
RUN choco install git -y --no-progress
|
||||||
RUN choco install rustup.install -y --no-progress
|
RUN choco install rustup.install -y --no-progress
|
||||||
|
|
||||||
# Install stable Rust toolchain
|
|
||||||
RUN rustup toolchain install stable-x86_64-pc-windows-msvc
|
RUN rustup toolchain install stable-x86_64-pc-windows-msvc
|
||||||
RUN rustup default stable-x86_64-pc-windows-msvc
|
RUN rustup default stable-x86_64-pc-windows-msvc
|
||||||
|
|
||||||
SHELL ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
|
SHELL ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
|
||||||
# Install dioxus-cli from git HEAD with cargo
|
# Install dioxus-cli from git HEAD with cargo
|
||||||
|
# This is to work around a bug in the windows builder upstream.
|
||||||
|
# Dioxus has released 0.7.2, but it seems to be broken for now.
|
||||||
RUN cargo install --git https://github.com/DioxusLabs/dioxus dioxus-cli
|
RUN 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"]
|
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
|
||||||
|
|||||||
Reference in New Issue
Block a user