aspnetcore-mysql.dockerfile 387 B

123456789101112131415
  1. FROM mcr.microsoft.com/dotnet/sdk:8.0.100-rc.2 AS build
  2. WORKDIR /app
  3. COPY src/Platform .
  4. RUN dotnet publish -c Release -o out /p:DatabaseProvider=MySqlConnector
  5. FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-rc.2 AS runtime
  6. ENV URLS http://+:8080
  7. WORKDIR /app
  8. COPY --from=build /app/out ./
  9. COPY appsettings.mysql.json ./appsettings.json
  10. EXPOSE 8080
  11. ENTRYPOINT ["dotnet", "Platform.dll"]