SHARE
TWEET

Untitled

a guest Apr 19th, 2019 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM microsoft/dotnet:2.1-sdk AS build
  2. WORKDIR /dont
  3.  
  4. COPY MedianFinder/*.csproj ./MedianFinder/
  5. WORKDIR /dont/MedianFinder
  6. RUN dotnet restore
  7.  
  8. COPY MedianFinder/. ./MedianFinder/
  9.  
  10. WORKDIR /dont/
  11. COPY MedianFinder/. ./MedianFinder/
  12. WORKDIR /dont/MedianFinder
  13. RUN dotnet publish -c Release -o out
  14.  
  15. FROM microsoft/dotnet:2.1-sdk AS runtime
  16. WORKDIR /dont
  17. COPY --from=build /dont/MedianFinder/out ./
  18. ENTRYPOINT ["dotnet", "MedianFinder.dll"]
  19.  
  20.  
  21. # docker build -t xxxxxxxxxxx . where xxxxxxxxxxx is images
  22. # docker run --rm -it xxxxxxxxxxx  hwre xxxxxxxxxxx is image name
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top