Skip to content

Commit

Permalink
Updated Base Image of Win-1809 Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
architmallik7 committed Jan 21, 2025
1 parent 27906db commit cc45a0c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker/docker/Dockerfile.windows.amd64.1809
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';"]

Expand All @@ -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" ]

0 comments on commit cc45a0c

Please sign in to comment.