forked from nopSolutions/nopCommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
458 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,73 @@ | ||
# create the build instance | ||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build | ||
#FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build | ||
|
||
WORKDIR /src | ||
COPY ./src ./ | ||
#WORKDIR /src | ||
#COPY ./src ./ | ||
|
||
# restore solution | ||
RUN dotnet restore NopCommerce.sln | ||
#RUN dotnet restore NopCommerce.sln | ||
|
||
WORKDIR /src/Presentation/Nop.Web | ||
#WORKDIR /src/Presentation/Nop.Web | ||
|
||
# build project | ||
RUN dotnet build Nop.Web.csproj -c Release | ||
#RUN dotnet build Nop.Web.csproj -c Release | ||
|
||
# build plugins | ||
WORKDIR /src/Plugins/Nop.Plugin.DiscountRules.CustomerRoles | ||
RUN dotnet build Nop.Plugin.DiscountRules.CustomerRoles.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.ExchangeRate.EcbExchange | ||
RUN dotnet build Nop.Plugin.ExchangeRate.EcbExchange.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.ExternalAuth.Facebook | ||
RUN dotnet build Nop.Plugin.ExternalAuth.Facebook.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Misc.SendinBlue | ||
RUN dotnet build Nop.Plugin.Misc.SendinBlue.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Payments.CheckMoneyOrder | ||
RUN dotnet build Nop.Plugin.Payments.CheckMoneyOrder.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Payments.Manual | ||
RUN dotnet build Nop.Plugin.Payments.Manual.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Payments.PayPalSmartPaymentButtons | ||
RUN dotnet build Nop.Plugin.Payments.PayPalSmartPaymentButtons.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Payments.PayPalStandard | ||
RUN dotnet build Nop.Plugin.Payments.PayPalStandard.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Pickup.PickupInStore | ||
RUN dotnet build Nop.Plugin.Pickup.PickupInStore.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Shipping.FixedByWeightByTotal | ||
RUN dotnet build Nop.Plugin.Shipping.FixedByWeightByTotal.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Shipping.ShipStation | ||
RUN dotnet build Nop.Plugin.Shipping.ShipStation.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Shipping.UPS | ||
RUN dotnet build Nop.Plugin.Shipping.UPS.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Tax.Avalara | ||
RUN dotnet build Nop.Plugin.Tax.Avalara.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Widgets.FacebookPixel | ||
RUN dotnet build Nop.Plugin.Widgets.FacebookPixel.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Tax.FixedOrByCountryStateZip | ||
RUN dotnet build Nop.Plugin.Tax.FixedOrByCountryStateZip.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Widgets.GoogleAnalytics | ||
RUN dotnet build Nop.Plugin.Widgets.GoogleAnalytics.csproj -c Release | ||
WORKDIR /src/Plugins/Nop.Plugin.Widgets.NivoSlider | ||
RUN dotnet build Nop.Plugin.Widgets.NivoSlider.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.DiscountRules.CustomerRoles | ||
#RUN dotnet build Nop.Plugin.DiscountRules.CustomerRoles.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.ExchangeRate.EcbExchange | ||
#RUN dotnet build Nop.Plugin.ExchangeRate.EcbExchange.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.ExternalAuth.Facebook | ||
#RUN dotnet build Nop.Plugin.ExternalAuth.Facebook.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Misc.SendinBlue | ||
#RUN dotnet build Nop.Plugin.Misc.SendinBlue.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Payments.CheckMoneyOrder | ||
#RUN dotnet build Nop.Plugin.Payments.CheckMoneyOrder.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Payments.Manual | ||
#RUN dotnet build Nop.Plugin.Payments.Manual.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Payments.PayPalSmartPaymentButtons | ||
#RUN dotnet build Nop.Plugin.Payments.PayPalSmartPaymentButtons.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Payments.PayPalStandard | ||
#RUN dotnet build Nop.Plugin.Payments.PayPalStandard.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Pickup.PickupInStore | ||
#RUN dotnet build Nop.Plugin.Pickup.PickupInStore.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Shipping.FixedByWeightByTotal | ||
#RUN dotnet build Nop.Plugin.Shipping.FixedByWeightByTotal.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Shipping.ShipStation | ||
#RUN dotnet build Nop.Plugin.Shipping.ShipStation.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Shipping.UPS | ||
#RUN dotnet build Nop.Plugin.Shipping.UPS.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Tax.Avalara | ||
#RUN dotnet build Nop.Plugin.Tax.Avalara.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Widgets.FacebookPixel | ||
#RUN dotnet build Nop.Plugin.Widgets.FacebookPixel.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Tax.FixedOrByCountryStateZip | ||
#RUN dotnet build Nop.Plugin.Tax.FixedOrByCountryStateZip.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Widgets.GoogleAnalytics | ||
#RUN dotnet build Nop.Plugin.Widgets.GoogleAnalytics.csproj -c Release | ||
#WORKDIR /src/Plugins/Nop.Plugin.Widgets.NivoSlider | ||
#RUN dotnet build Nop.Plugin.Widgets.NivoSlider.csproj -c Release | ||
|
||
# publish project | ||
WORKDIR /src/Presentation/Nop.Web | ||
RUN dotnet publish Nop.Web.csproj -c Release -o /app/published | ||
#WORKDIR /src/Presentation/Nop.Web | ||
#RUN dotnet publish Nop.Web.csproj -c Release -o /app/published | ||
|
||
# create the runtime instance | ||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS runtime | ||
|
||
# add globalization support | ||
RUN apk add --no-cache icu-libs | ||
#RUN apk add --no-cache icu-libs | ||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false | ||
|
||
# installs required packages | ||
RUN apk add libgdiplus --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted | ||
RUN apk add libc-dev --no-cache | ||
#RUN apk add libgdiplus --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted | ||
#RUN apk add libc-dev --no-cache | ||
|
||
WORKDIR /app | ||
RUN mkdir bin | ||
RUN mkdir logs | ||
|
||
COPY --from=build /app/published . | ||
RUN mkdir logs | ||
|
||
COPY src/Presentation/Nop.Web/bin/Release/netcoreapp3.1 ./bin | ||
#COPY --from=build /app/published . | ||
|
||
ENTRYPOINT ["dotnet", "Nop.Web.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.