Created
May 11, 2020 11:12
-
-
Save JordiCorbilla/65a41074af9696d3911ea22c3f59eed3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
PS C:\Users\thund\Source\Repos\TradingPlatform> docker build -t trading-platform:v1 . | |
Sending build context to Docker daemon 10.29MB | |
Step 1/21 : FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base | |
---> 79e79777c3bf | |
Step 2/21 : WORKDIR /app | |
---> Using cache | |
---> 362b7d6a0271 | |
Step 3/21 : EXPOSE 80 | |
---> Using cache | |
---> 75b04237557e | |
Step 4/21 : EXPOSE 443 | |
---> Using cache | |
---> 51bf2ea817a2 | |
Step 5/21 : FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build | |
---> 4aa6a74611ff | |
Step 6/21 : WORKDIR /src | |
---> Using cache | |
---> 4c2a5ce16109 | |
Step 7/21 : COPY ["WebApi/*.*", "./WebApi/"] | |
---> Using cache | |
---> 93b519d6d5d6 | |
Step 8/21 : WORKDIR /src | |
---> Using cache | |
---> 33f79d3a9024 | |
Step 9/21 : COPY ["VRTradingService/*.*", "./VRTradingService/"] | |
---> Using cache | |
---> 6ad96d3b012f | |
Step 10/21 : WORKDIR /src | |
---> Using cache | |
---> e112d15992b6 | |
Step 11/21 : COPY ["VRTradingInfraestructureServices/*.*", "./VRTradingInfraestructureServices/"] | |
---> Using cache | |
---> f0f335e4ad60 | |
Step 12/21 : RUN dotnet restore "./WebApi/vr.trading.api.csproj" | |
---> Using cache | |
---> 02410fc2a067 | |
Step 13/21 : COPY . . | |
---> Using cache | |
---> 172799c888e9 | |
Step 14/21 : WORKDIR "/src/." | |
---> Using cache | |
---> 97ed8c78c312 | |
Step 15/21 : RUN dotnet build "WebApi/vr.trading.api.csproj" -c Release -o /app/build | |
---> Running in 8eca904225f9 | |
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Restore completed in 69.52 ms for /src/WebApi/vr.trading.api.csproj. | |
Restore completed in 69.09 ms for /src/VRTradingService/vr.trading.service.csproj. | |
Restore completed in 1.77 ms for /src/VRTradingInfraestructureServices/vr.trading.infrastructure.services.csproj. | |
vr.trading.service -> /app/build/vr.trading.service.dll | |
vr.trading.infrastructure.services -> /app/build/vr.trading.infrastructure.services.dll | |
vr.trading.api -> /app/build/vr.trading.api.dll | |
Build succeeded. | |
0 Warning(s) | |
0 Error(s) | |
Time Elapsed 00:00:07.52 | |
Removing intermediate container 8eca904225f9 | |
---> 555afba86b8a | |
Step 16/21 : FROM build AS publish | |
---> 555afba86b8a | |
Step 17/21 : RUN dotnet publish "WebApi/vr.trading.api.csproj" -c Release -o /app/publish | |
---> Running in 55c6e74f7371 | |
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Restore completed in 93.15 ms for /src/VRTradingInfraestructureServices/vr.trading.infrastructure.services.csproj. | |
Restore completed in 93.16 ms for /src/WebApi/vr.trading.api.csproj. | |
Restore completed in 1.07 ms for /src/VRTradingService/vr.trading.service.csproj. | |
vr.trading.infrastructure.services -> /src/VRTradingInfraestructureServices/bin/Release/netstandard2.0/vr.trading.infrastructure.services.dll | |
vr.trading.service -> /src/VRTradingService/bin/Release/netstandard2.0/vr.trading.service.dll | |
vr.trading.api -> /src/WebApi/bin/Release/netcoreapp3.1/vr.trading.api.dll | |
vr.trading.api -> /app/publish/ | |
Removing intermediate container 55c6e74f7371 | |
---> 4e026ebe5814 | |
Step 18/21 : FROM base AS final | |
---> 51bf2ea817a2 | |
Step 19/21 : WORKDIR /app | |
---> Running in b139a8c1b257 | |
Removing intermediate container b139a8c1b257 | |
---> 67f35691cc0a | |
Step 20/21 : COPY --from=publish /app/publish . | |
---> 7e5065016a98 | |
Step 21/21 : ENTRYPOINT ["dotnet", "vr.trading.api.dll"] | |
---> Running in 58fbb8756b0d | |
Removing intermediate container 58fbb8756b0d | |
---> a9e155c4548d | |
Successfully built a9e155c4548d | |
Successfully tagged trading-platform:v1 | |
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment