aspnet-template/Dockerfile

25 lines
600 B
Docker
Raw Normal View History

2025-01-24 11:47:03 +00:00
FROM mcr.microsoft.com/dotnet/sdk:9.0
#
# Dockerfile para DESARROLLO. Te da acceso a un shell,
# desde el cual se ejecuta la aplicacion, crean migraciones,
# actualiza la base de datos, etc.
#
WORKDIR /app
RUN dotnet tool install --global dotnet-ef
ENV PATH="${PATH}:/root/.dotnet/tools"
ENV ASPNETCORE_URLS=http://+:5233
ENV ASPNETCORE_ENVIRONMENT=Development
# Script para iniciar el servidor de desarrollo de dotnet
RUN echo '#!/bin/bash\n\
dotnet watch run --no-launch-profile &\n\
/bin/bash' > /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# ENTRYPOINT ["bash"]