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

137
Vistas
ASP.net core dev container

Background: When working with Python-based containers, I usually create employ docker-compose to create a dev.yml override that ensures auto-reloading of Python files and provides the Python source using a volume (instead of adding the files). This way I can get really quick turnaround times when developing (basically just saving the file). Now I need to create a few services in ASP.net core and I am looking to do the same.

TL;DR:

Here's the essentials of my Dockerfile:

FROM microsoft/dotnet
ADD src /app
RUN cd /app/src ; \
    dotnet build
ADD env/appsettings.json /app/src/TestService
CMD cd /app/src/TestService ; \
    dotnet run

Now, the question is: How can I fit this into an efficient development workflow. Of course I know I can just run Kestrel from Visual Studio, this is not my question. I need to run the container itself (it requires its Compose context as it has other service dependencies). I am not too bothered with stepping in Visual Studio etc (I know VS is supposed to have Docker support, but I haven't been too impressed so far), but I need something slightly more efficient than rebuilding the container every time I make a code change.

I think I want this:

  • Source code as volume (I know how to do that)
  • Auto detect source changes, rebuild source, restart server (I don't know how to do that)

But I am also open to suggestions, especially if there is a canonical way of working with ASP.net core in Docker that I have failed to find.

about 4 years ago · Santiago Trujillo
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