临河任务调度
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Dockerfile 831B

1234567891011121314151617181920
  1. FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
  2. COPY . .
  3. WORKDIR /templates/service/host/IdentityServerHost
  4. RUN dotnet restore
  5. RUN dotnet ef migrations script -i -o migrations-IdentityServerHost.sql
  6. WORKDIR /templates/service/host/Himp.TaskScheduling.Host
  7. RUN dotnet restore
  8. RUN dotnet ef migrations script -i -o migrations-TaskScheduling.sql
  9. FROM mcr.microsoft.com/mssql-tools AS final
  10. WORKDIR /src
  11. COPY --from=build /templates/service/host/IdentityServerHost/migrations-IdentityServerHost.sql migrations-IdentityServerHost.sql
  12. COPY --from=build /templates/service/host/Himp.TaskScheduling.Host/migrations-TaskScheduling.sql migrations-TaskScheduling.sql
  13. COPY --from=build /templates/service/database/entrypoint.sh .
  14. RUN /bin/bash -c "sed -i $'s/\r$//' entrypoint.sh"
  15. RUN chmod +x ./entrypoint.sh
  16. ENTRYPOINT ["./entrypoint.sh"]