Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda