Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FROM cloud.canister.io:5000/vmeretail/epositybase AS base
- FROM epositybase as base
- WORKDIR /app
- FROM cloud.canister.io:5000/vmeretail/vmebase AS build
- WORKDIR /src
- COPY ["Vme.Eposity.Organisations/Vme.Eposity.Organisations.csproj", "Vme.Eposity.Organisations/"]
- COPY ["Vme.Eposity.Organisations.StoreAggregate/Vme.Eposity.Organisations.StoreAggregate.csproj", "Vme.Eposity.Organisations.StoreAggregate/"]
- COPY ["Vme.Eposity.Organisations.DomainEvents/Vme.Eposity.Organisations.DomainEvents.csproj", "Vme.Eposity.Organisations.DomainEvents/"]
- COPY ["Vme.Eposity.Organisations.DataTransferObjects/Vme.Eposity.Organisations.DataTransferObjects.csproj", "Vme.Eposity.Organisations.DataTransferObjects/"]
- COPY ["Vme.Eposity.Organisations.Models/Vme.Eposity.Organisations.Models.csproj", "Vme.Eposity.Organisations.Models/"]
- COPY ["Vme.Eposity.Organisations.StoreProductAggregate/Vme.Eposity.Organisations.StoreProductAggregate.csproj", "Vme.Eposity.Organisations.StoreProductAggregate/"]
- COPY ["Vme.Eposity.Organisations.BusinessLogic/Vme.Eposity.Organisations.BusinessLogic.csproj", "Vme.Eposity.Organisations.BusinessLogic/"]
- COPY ["Vme.Eposity.Organisations.SupplierAggregate/Vme.Eposity.Organisations.SupplierAggregate.csproj", "Vme.Eposity.Organisations.SupplierAggregate/"]
- COPY ["Vme.Eposity.Organisations.OrganisationAggregate/Vme.Eposity.Organisations.OrganisationAggregate.csproj", "Vme.Eposity.Organisations.OrganisationAggregate/"]
- COPY ["Vme.Eposity.Organisations.OrganisationProductAggregate/Vme.Eposity.Organisations.OrganisationProductAggregate.csproj", "Vme.Eposity.Organisations.OrganisationProductAggregate/"]
- COPY ["Vme.Eposity.Organisations.Commands/Vme.Eposity.Organisations.Commands.csproj", "Vme.Eposity.Organisations.Commands/"]
- COPY ["Vme.Eposity.Organisations.PriceRangeAggregate/Vme.Eposity.Organisations.PriceRangeAggregate.csproj", "Vme.Eposity.Organisations.PriceRangeAggregate/"]
- COPY ["Vme.Eposity.Organisations.Database/Vme.Eposity.Organisations.Database.csproj", "Vme.Eposity.Organisations.Database/"]
- COPY ["Vme.Eposity.Organisations.Repository/Vme.Eposity.Organisations.Repository.csproj", "Vme.Eposity.Organisations.Repository/"]
- RUN dotnet restore "Vme.Eposity.Organisations/Vme.Eposity.Organisations.csproj"
- COPY . .
- WORKDIR "/src/Vme.Eposity.Organisations"
- RUN dotnet build "Vme.Eposity.Organisations.csproj" -c Release -o /app
- FROM build AS publish
- RUN dotnet publish "Vme.Eposity.Organisations.csproj" -c Release -o /app
- FROM base AS final
- WORKDIR /app
- COPY --from=publish /app .
- #ENTRYPOINT ["dotnet", "Vme.Eposity.Organisations.dll"]
- COPY Vme.Eposity.Organisations/entrypoint.sh .
- RUN apt-get update && \
- apt-get install -y dos2unix curl
- RUN dos2unix .sh && apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/
- RUN chmod +x ./entrypoint.sh
- CMD bash ./entrypoint.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement