dot-net/Dockerfile

17 lines
474 B
Docker
Raw Normal View History

2025-01-11 21:29:43 +00:00
FROM mcr.microsoft.com/dotnet/sdk:8.0
2025-01-11 21:20:05 +00:00
WORKDIR /app
2025-01-11 23:30:12 +00:00
# Install EF tools globally in the container
RUN dotnet tool install --global dotnet-ef
# Add dotnet tools to PATH
ENV PATH="${PATH}:/root/.dotnet/tools"
2025-01-11 21:20:05 +00:00
# Set ASP.NET to actually listen on all interfaces, not just localhost
2025-01-11 21:29:43 +00:00
ENV ASPNETCORE_URLS=http://+:5233
2025-01-11 21:20:05 +00:00
# Allow non-HTTPS because it's just development, who cares
ENV ASPNETCORE_ENVIRONMENT=Development
ENTRYPOINT ["dotnet", "watch", "run", "--no-launch-profile"]