Guest User

Untitled

a guest
Feb 17th, 2018
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. # docker build -t dev .
  2. Sending build context to Docker daemon 218.1kB
  3. Step 1/16 : FROM microsoft/aspnetcore:2.0 AS base
  4. Error parsing reference: "microsoft/aspnetcore:2.0 AS base" is not a valid repository/tag: invalid reference format
  5.  
  6. docker --version
  7. Docker version 18.02.0-ce, build fc4de44
  8.  
  9. FROM microsoft/aspnetcore:2.0 AS base
  10. WORKDIR /app
  11. EXPOSE 80
  12.  
  13. FROM microsoft/aspnetcore-build:2.0 AS build
  14. WORKDIR /src
  15. COPY XXXXXX.API.csproj ./
  16. RUN dotnet restore
  17. COPY . .
  18. WORKDIR /src
  19. RUN dotnet build -c Release -o /app
  20.  
  21. FROM build AS publish
  22. RUN dotnet publish -c Release -o /app
  23.  
  24. FROM base AS final
  25. WORKDIR /app
  26. COPY --from=publish /app .
  27. ENTRYPOINT ["dotnet", "XXXXXX.API.dll"]
Add Comment
Please, Sign In to add comment