Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM microsoft/dotnet:2.1-sdk AS build
- WORKDIR /dont
- COPY MedianFinder/*.csproj ./MedianFinder/
- WORKDIR /dont/MedianFinder
- RUN dotnet restore
- COPY MedianFinder/. ./MedianFinder/
- WORKDIR /dont/
- COPY MedianFinder/. ./MedianFinder/
- WORKDIR /dont/MedianFinder
- RUN dotnet publish -c Release -o out
- FROM microsoft/dotnet:2.1-sdk AS runtime
- WORKDIR /dont
- COPY --from=build /dont/MedianFinder/out ./
- ENTRYPOINT ["dotnet", "MedianFinder.dll"]
- # docker build -t xxxxxxxxxxx . where xxxxxxxxxxx is images
- # docker run --rm -it xxxxxxxxxxx hwre xxxxxxxxxxx is image name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement