Skip to content

Commit

Permalink
use ENTRYPOINT instead of CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspimentel committed Jul 25, 2024
1 parent af2ca76 commit e9b34b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tracer/samples/IISInDocker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ COPY install-dd-trace-dotnet.ps1 startup.ps1 ./
# Install the Datadog SDK for .NET using the msi installer
RUN .\install-dd-trace-dotnet.ps1

# Remove the default ENTRYPOINT "C:\ServiceMonitor.exe w3svc"
ENTRYPOINT []

# Note: Normally an IIS reset is also required but 'C:\ServiceMonitor.exe w3svc'
# will restart IIS and update the environment variables received by the child w3wp processes
CMD .\startup.ps1
# Replace the default ENTRYPOINT "C:\ServiceMonitor.exe w3svc"
ENTRYPOINT .\startup.ps1

0 comments on commit e9b34b7

Please sign in to comment.