Last active
September 5, 2024 19:33
-
-
Save keyan1603/14b3ace391931a1cd11055e22f407c41 to your computer and use it in GitHub Desktop.
Prevent App pool recycle in Docker environment
This file contains hidden or 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
RUN Import-Module WebAdministration; ` | |
Set-ItemProperty "IIS:\AppPools\DefaultAppPool" -Name Recycling.periodicRestart.time -Value 0.00:00:00; ` | |
Set-ItemProperty "IIS:\AppPools\DefaultAppPool" -Name Recycling.periodicRestart.requests -Value 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment