-
-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathDockerfile
30 lines (24 loc) · 1.49 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG windowsDllSourceImage="mcr.microsoft.com/windows/server:ltsc2022"
ARG windowsImage="mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022"
# Need this image to grab missing dlls for the server core version
FROM $windowsDllSourceImage AS dll-source
# We use the .net framework servercore image because we will need the .net support
# anyway and there is no real benefit to try and make this smaller by
# basing on the blank windowsservercore because only the .net version is
# cached on the github actions runner.
FROM $windowsImage
SHELL ["cmd", "/C"]
# DLLs for Unity Hub and Unity Editor
COPY --from=dll-source c:/windows/system32/BluetoothApis.dll \
c:/windows/system32/bthprops.cpl \
c:/windows/system32/dxva2.dll \
c:/windows/system32/mf.dll \
c:/windows/system32/mfplat.dll \
c:/windows/system32/mfreadwrite.dll \
c:/windows/system32/opengl32.dll \
c:/windows/system32/glu32.dll \
c:/windows/system32/
# Enable executing powershell scripts
RUN powershell -Command Set-ExecutionPolicy unrestricted
# Install chocolatey
RUN powershell -Command Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))