This repository was archived by the owner on Apr 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathDockerfile-windows
More file actions
58 lines (57 loc) · 2.22 KB
/
Copy pathDockerfile-windows
File metadata and controls
58 lines (57 loc) · 2.22 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
ARG SERVERCORE_VERSION
FROM mcr.microsoft.com/windows/servercore:${SERVERCORE_VERSION}
SHELL ["powershell", "-NoLogo", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN [Environment]::SetEnvironmentVariable('PATH', ('C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;c:\innoextract;c:\app;c:\rancher;{0}' -f $env:PATH), [EnvironmentVariableTarget]::Machine)
RUN $URL = 'https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/MinGit-2.23.0-64-bit.zip'; \
\
Write-Host ('Downloading git from {0} ...' -f $URL); \
\
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -UseBasicParsing -OutFile c:\git.zip -Uri $URL; \
\
Write-Host 'Expanding ...'; \
\
Expand-Archive c:\git.zip -DestinationPath c:\git\.; \
\
Write-Host 'Cleaning ...'; \
\
Remove-Item -Force -Path c:\git.zip; \
\
Write-Host 'Complete.';
RUN $URL = 'https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-windows.zip'; \
\
Write-Host ('Downloading innoextract from {0} ...' -f $URL); \
\
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -UseBasicParsing -OutFile c:\innoextract.zip -Uri $URL; \
\
Write-Host 'Expanding ...'; \
\
Expand-Archive c:\innoextract.zip -DestinationPath c:\innoextract\.; \
\
Write-Host 'Cleaning ...'; \
\
Remove-Item -Force -Recurse -Path c:\innoextract.zip; \
\
Write-Host 'Complete.';
RUN $URL = 'https://github.com/docker/toolbox/releases/download/v19.03.1/DockerToolbox-19.03.1.exe'; \
\
Write-Host ('Downloading docker from {0} ...' -f $URL); \
\
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
Invoke-WebRequest -UseBasicParsing -OutFile c:\dockertoolbox.exe -Uri $URL; \
\
Write-Host 'Expanding ...'; \
\
pushd c:\; \
\
innoextract c:\dockertoolbox.exe; \
\
Write-Host 'Cleaning ...'; \
\
Remove-Item -Force -Recurse -Path @('c:\dockertoolbox.exe', 'c:\app\*') -Exclude @('docker.exe'); \
\
popd; \
\
Write-Host 'Complete.';
ADD bin/dapper.exe c:/rancher/dapper.exe