临河任务调度
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
831B

  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"]