If you are having an issue with microsoft/aspnet, please open an issue on https://github.com/Microsoft/aspnet-docker.
This repository is for microsoft/aspnetcore and microsoft/aspnetcore-build.
Steps to reproduce the issue
(e.g. copy your Dockerfile or docker-compose.yml file here)
FROM microsoft/aspnetcore-build:2.0.0 AS builder
WORKDIR /SawneeMed.API.Web
COPY SawneeMed.API.Web/SawneeMed.API.Web.csproj .
RUN dotnet restore
COPY SawneeMed.API.Web/ .
RUN dotnet build -c Release -o out
FROM microsoft/aspnetcore:2.0.0
WORKDIR /SawneeMed.API.Web
COPY --from=builder /SawneeMed.API.Web/out/ .
ENTRYPOINT ["dotnet", "/SawneeMed.API.Web/SawneeMed.API.Web.dll"]
Expected behavior
A running webapi container
Actual behavior
Build process completes, this error happens when trying to run my web app:
Error:
An assembly specified in the application dependencies manifest (SawneeMed.API.Web.deps.json) was not found:
package: 'Swashbuckle.AspNetCore.Swagger', version: '1.0.0'
path: 'lib/netstandard1.6/Swashbuckle.AspNetCore.Swagger.dll'
Additional information (e.g. issue happens only occasionally)
I found this issue that seems similar, but the given advice was to use the microsoft/aspnetcore image to run the application. As you can see, I am using that image. I've also tried building application using the 'linux-x64' runtime identifier, but then I'm hitting this other issue which they claim to have been fixed months ago.
Output of dotnet --info
.NET Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/2.0.0/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
If you are having an issue with microsoft/aspnet, please open an issue on https://github.com/Microsoft/aspnet-docker. This repository is for microsoft/aspnetcore and microsoft/aspnetcore-build.
Steps to reproduce the issue
(e.g. copy your Dockerfile or docker-compose.yml file here)
Expected behavior
A running webapi container
Actual behavior
Build process completes, this error happens when trying to run my web app:
Additional information (e.g. issue happens only occasionally)
I found this issue that seems similar, but the given advice was to use the microsoft/aspnetcore image to run the application. As you can see, I am using that image. I've also tried building application using the 'linux-x64' runtime identifier, but then I'm hitting this other issue which they claim to have been fixed months ago.
Output of
dotnet --info
Output of
docker info