Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

181
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda