Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
Appending to base image's ENTRYPOINT

The microsoft/iis image Dockerfile has this line:

ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]

In my image's dockerfile, which uses microsoft/iis as the base image, I have a powershell script which I would like to also run when the image runs as a container, so I have done this:

ENTRYPOINT ["powershell", "-executionpolicy", "bypass", "-command", "./my-script.ps1"]

The desired result is that the microsoft/iis image would run its' ENTRYPOINT, followed by my image running its' ENTRYPOINT. However it seems that my image's ENTRYPOINT completely overwrites the microsoft/iis one.

How do I get both ENTRYPOINTs to run?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can not have multiple ENTRYPOINTs, but you could get this to work by putting both commands into a start-up.ps1 and running that as your ENTRYPOINT.

ADD start-up.ps1

ENTRYPOINT ['powershell', '.\start-up.ps1']
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!