windows container, tested it builds
This commit is contained in:
parent
4bc4052547
commit
5de1307cef
|
@ -1,4 +1,29 @@
|
|||
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
|
||||
FROM cirrusci/android-sdk:30-windowsservercore-2019
|
||||
|
||||
# Install VS
|
||||
# https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019
|
||||
|
||||
# Restore the default Windows shell for correct batch processing.
|
||||
SHELL ["cmd", "/S", "/C"]
|
||||
|
||||
# Download the Build Tools bootstrapper.
|
||||
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:/TEMP/vs_buildtools.exe
|
||||
|
||||
# Install Build Tools with the Microsoft.VisualStudio.Workload.AzureBuildTools workload, excluding workloads and components with known issues.
|
||||
RUN C:/TEMP/vs_buildtools.exe --quiet --wait --norestart --nocache \
|
||||
--installPath BuildTools \
|
||||
--add Microsoft.VisualStudio.Workload.AzureBuildTools \
|
||||
--remove Microsoft.VisualStudio.Component.Windows10SDK.10240 \
|
||||
--remove Microsoft.VisualStudio.Component.Windows10SDK.10586 \
|
||||
--remove Microsoft.VisualStudio.Component.Windows10SDK.14393 \
|
||||
--remove Microsoft.VisualStudio.Component.Windows81SDK \
|
||||
|| IF "%ERRORLEVEL%"=="3010" EXIT 0
|
||||
|
||||
# Install Flutter
|
||||
|
||||
ADD https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_2.0.4-stable.zip C:/TEMP/flutter.zip
|
||||
|
||||
#CMD ["powershell.exe", "Expand-Archive -LiteralPath 'C:\\TEMP\\flutter.zip' -DestinationPath 'C:\\'"]
|
||||
RUN powershell -Command "expand-archive -Path 'C:\TEMP\flutter.zip' -DestinationPath 'c:\'"
|
||||
|
||||
RUN setx path "%path%;C:\flutter\bin"
|
||||
|
|
Loading…
Reference in New Issue