Last active
April 25, 2018 14:38
Revisions
-
shawnweisfeld revised this gist
Apr 25, 2018 . 2 changed files with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ NOTE: put both in the folder above your .csproj file 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ -
shawnweisfeld created this gist
Apr 25, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # directories **/bin/ **/obj/ **/out/ # files Dockerfile* **/*.trx **/*.md 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ FROM microsoft/dotnet:2.0-sdk AS build WORKDIR /app # copy csproj and restore as distinct layers COPY MovieDB/*.csproj ./ RUN dotnet restore # copy everything else and build app COPY MovieDB/. ./ RUN dotnet publish -o out /p:PublishWithAspNetCoreTargetManifest="false" FROM microsoft/dotnet:2.0-runtime AS runtime ENV ASPNETCORE_URLS http://+:80 WORKDIR /app COPY --from=build /app/out ./ ENTRYPOINT ["dotnet", "MovieDB.dll"] 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ NOTE: put in the folder above your .csproj file