mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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.
21 lines
766 B
21 lines
766 B
FROM microsoft/dotnet:2.2-sdk-alpine AS build
|
|
RUN apk add --no-cache bash
|
|
COPY . .
|
|
|
|
WORKDIR /templates/service/host/IdentityServerHost
|
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
|
RUN dotnet build --no-restore -c Release
|
|
|
|
WORKDIR /templates/service/host/MyCompanyName.MyProjectName.Host
|
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
|
RUN dotnet build --no-restore -c Release
|
|
|
|
FROM build AS final
|
|
WORKDIR /src
|
|
COPY --from=build /templates/service/host/IdentityServerHost ./IdentityServerHost
|
|
COPY --from=build /templates/service/host/MyCompanyName.MyProjectName.Host ./MyCompanyName.MyProjectName.Host
|
|
COPY --from=build /templates/service/database/entrypoint.sh .
|
|
RUN /bin/bash -c "sed -i $'s/\r$//' entrypoint.sh"
|
|
RUN chmod +x ./entrypoint.sh
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|