win-build/rust.Dockerfile

13 lines
439 B
Docker

# escape=`
FROM win_build:ltsc2022
ADD https://win.rustup.rs C:\docker\rustup-init.exe
RUN C:\docker\rustup-init.exe --quiet -y
RUN setx path "%path%;%USERPROFILE%\.cargo\bin"
RUN rustup update
VOLUME C:\source\
WORKDIR C:\source\
ENTRYPOINT ["powershell", "-NoExit", "-Command", "Import-Module C:\\msvc\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll;", "Enter-VsDevShell -VsInstallPath C:\\msvc\\ -DevCmdArguments -arch=amd64;"]