-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (56 loc) · 1.9 KB
/
Copy pathDockerfile
File metadata and controls
68 lines (56 loc) · 1.9 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# escape=`
ARG IMAGE_TAG
FROM webkitdev/base:$IMAGE_TAG
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
#--------------------------------------------------------------------
# Install NuGet
#--------------------------------------------------------------------
ENV NUGET_VERSION 2.8.5.208
RUN $scriptArgs = @{ `
Name = 'NuGet'; `
Scope = 'AllUsers'; `
RequiredVersion = $env:NUGET_VERSION; `
Force = $true; `
}; `
`
if (Test-Path env:HTTPS_PROXY) { `
$scriptArgs['Proxy'] = $env:HTTPS_PROXY; `
} `
`
Install-PackageProvider @scriptArgs;
#--------------------------------------------------------------------
# Trust Powershell Gallery
#--------------------------------------------------------------------
RUN $scriptArgs = @{ `
Name = 'PSGallery'; `
InstallationPolicy = 'Trusted'; `
}; `
`
if (Test-Path env:HTTPS_PROXY) { `
$scriptArgs['Proxy'] = $env:HTTPS_PROXY; `
} `
`
Set-PSRepository @scriptArgs;
#--------------------------------------------------------------------
# Install WebKitDev Module
#--------------------------------------------------------------------
ENV WEBKIT_DEV_VERSION 0.7.0
RUN $scriptArgs = @{ `
Name = 'WebKitDev'; `
Scope = 'AllUsers'; `
RequiredVersion = $env:WEBKIT_DEV_VERSION; `
Force = $true; `
}; `
`
if (Test-Path env:HTTPS_PROXY) { `
$scriptArgs['Proxy'] = $env:HTTPS_PROXY; `
} `
`
Install-Module @scriptArgs;
#--------------------------------------------------------------------
# Install Chocolatey
#--------------------------------------------------------------------
RUN Invoke-WebFileRequest -Url https://community.chocolatey.org/install.ps1 -DestinationPath C:/install.ps1; `
C:/install.ps1; `
Remove-Item C:/install.ps1; `
choco --version;