-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Base Image of Win-1809 Dockerfile
- Loading branch information
1 parent
27906db
commit cc45a0c
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# escape=` | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2019 as download | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2019 as core | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
|
@@ -12,20 +12,24 @@ RUN Invoke-WebRequest 'http://constexpr.org/innoextract/files/innoextract-1.6-wi | |
# Download Docker Toolbox | ||
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; ` | ||
Invoke-WebRequest $('https://github.com/docker/toolbox/releases/download/v{0}/DockerToolbox-{0}.exe' -f $env:DOCKER_VERSION) -OutFile 'dockertoolbox.exe' -UseBasicParsing | ||
|
||
RUN C:\innoextract.exe dockertoolbox.exe | ||
|
||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
USER ContainerAdministrator | ||
|
||
ENV GODEBUG=netdns=go | ||
|
||
COPY --from=core /windows/system32/netapi32.dll /windows/system32/netapi32.dll | ||
COPY --from=core /app/docker.exe C:/bin/docker.exe | ||
|
||
LABEL maintainer="Drone.IO Community <[email protected]>" ` | ||
org.label-schema.name="Drone Docker" ` | ||
org.label-schema.vendor="Drone.IO Community" ` | ||
org.label-schema.schema-version="1.0" | ||
|
||
RUN mkdir C:\bin | ||
COPY --from=download /windows/system32/netapi32.dll /windows/system32/netapi32.dll | ||
COPY --from=download /app/docker.exe C:/bin/docker.exe | ||
ADD release/windows/amd64/drone-docker.exe C:/bin/drone-docker.exe | ||
|
||
ENTRYPOINT [ "C:\\bin\\drone-docker.exe" ] |