Skip to content

Commit 3ec61e0

Browse files
committed
Tried patch proposed by Sandeep Bansal
1 parent 1350315 commit 3ec61e0

7 files changed

Lines changed: 8 additions & 0 deletions

File tree

_docker/redis/Dockerfile.nanowin

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN Get-Content redis.windows.conf | Where { $_ -notmatch 'bind 127.0.0.1' } | S
2222

2323
EXPOSE 6379
2424

25+
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord
26+
2527
# Define our command to be run when launching the container
2628
CMD .\\redis-server.exe .\\redis.unprotected.conf --port 6379 ; \
2729
Write-Host Redis Started... ; \
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/dotnet:1.1-runtime-nanoserver
22
ARG source
33
WORKDIR /app
4+
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord
45
EXPOSE 80
56
COPY ${source:-obj/Docker/publish} .
67
ENTRYPOINT ["dotnet", "Basket.API.dll"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/dotnet:1.1-runtime-nanoserver
22
ARG source
33
WORKDIR /app
4+
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord
45
EXPOSE 80
56
COPY ${source:-obj/Docker/publish} .
67
ENTRYPOINT ["dotnet", "Catalog.API.dll"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/dotnet:1.1-runtime-nanoserver
22
ARG source
33
WORKDIR /app
4+
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord
45
EXPOSE 80
56
COPY ${source:-obj/Docker/publish} .
67
ENTRYPOINT ["dotnet", "Identity.API.dll"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/dotnet:1.1-runtime-nanoserver
22
ARG source
33
WORKDIR /app
4+
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord
45
EXPOSE 80
56
COPY ${source:-obj/Docker/publish} .
67
ENTRYPOINT ["dotnet", "Ordering.API.dll"]

src/Web/WebMVC/Dockerfile.nanowin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/dotnet:1.1-runtime-nanoserver
22
ARG source
33
WORKDIR /app
4+
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord
45
EXPOSE 80
56
COPY ${source:-obj/Docker/publish} .
67
ENTRYPOINT ["dotnet", "WebMVC.dll"]

src/Web/WebSPA/Dockerfile.nanowin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/dotnet:1.1-runtime-nanoserver
22
ARG source
33
WORKDIR /app
4+
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord
45
EXPOSE 80
56
COPY ${source:-obj/Docker/publish} .
67
ENTRYPOINT ["dotnet", "WebSPA.dll"]

0 commit comments

Comments
 (0)