Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base
- WORKDIR /app
- FROM mcr.microsoft.com/dotnet/core/sdk:2.2 as build
- WORKDIR /mainsrc/secondaryids
- COPY ./IdentityServer4(Secondary Identity Server for Federated Login) .
- WORKDIR /mainsrc/secondaryids/IdentityServer4(Secondary Identity Server for Federated Login)/host
- RUN dotnet publish --no-restore -c Release -o /app
- #Cleanup of Published content
- FROM base AS final
- COPY --from=build /app .
- EXPOSE 80
- ENV ASPNETCORE_URLS http://*:80
- ENV ASPNETCORE_ENVIRONMENT=Production
- ENTRYPOINT ["dotnet", "Host.dll"]
- #docker build --pull --rm -f "Dockerfile.SecondaryIds.LocalDEV" -t docker-registry.iazi.local:30641/iazi/service.auth.identityserver.secondaryids:1.0.0 -t docker-registry.iazi.local:30641/iazi/service.auth.identityserver.secondaryids:latest .
- #docker run -p 80:80 --rm --name service.auth.identityserver.secondaryids docker-registry.iazi.local:30641/iazi/service.auth.identityserver.secondaryids:latest
- #docker push docker-registry.iazi.local:30641/iazi/service.auth.identityserver.secondaryids:latest
- #docker push docker-registry.iazi.local:30641/iazi/service.auth.identityserver.secondaryids:1.0.0
- #docker exec -it 318 /bin/bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement