Skip to content

Running as docker container throws " An assembly specified in the application dependencies manifest (Asp2017.deps.json) was not found" #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jinnabaalu opened this issue Nov 19, 2017 · 6 comments

Comments

@jinnabaalu
Copy link

I have followed this steps to create Docker image and run as

Publish

dotnet publish -c Release

Created Dockerfile in bin/Release/netcoreapp2.0/publish with

FROM microsoft/dotnet:2.0-runtime
WORKDIR /app
COPY . .
CMD ASPNETCORE_URLS=http://*:$PORT dotnet Asp2017.dll

Created Docker image with

docker build -t dotnetcoreapi ./bin/Release/netcoreapp2.0/publish

Running using

docker run -p 8009:5000 dotnetcoreapi

ERROR

An assembly specified in the application dependencies manifest (Asp2017.deps.json) was not found:
    package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1.1'
    path: 'lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll'
  This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
    aspnetcore-store-2.0.0-linux-x64.xml;aspnetcore-store-2.0.0-osx-x64.xml;aspnetcore-store-2.0.0-win7-x64.xml;aspnetcore-store-2.0.0-win7-x86.xml

image

@Crazyht
Copy link

Crazyht commented Nov 20, 2017

Hi,

It's work weel with this docker file :

FROM microsoft/aspnetcore:2.0

RUN apt-get update
RUN apt-get install apt-utils wget -y    
RUN apt-get install -y --no-install-recommends gnupg2
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs

ENV ASPNETCORE_URLS "http://0.0.0.0:80"
ENV ASPNETCORE_ENVIRONMENT Production

WORKDIR /app

COPY . .

RUN npm install

EXPOSE 80:80
ENTRYPOINT ["dotnet", "Asp2017.dll"]

@jinnabaalu
Copy link
Author

@Crazyht thank you for the reply. Where do i need to place this docker file in root or in publish flder?

@Crazyht
Copy link

Crazyht commented Nov 20, 2017

In my case dockerfile is copied to publish folder, else you need adapt COPY . . line to according source folder

@jinnabaalu
Copy link
Author

I have tried using the configuration which you gave here. Still i am facing some other issue.

image
Able to create image and run, but when i try to access it from browser will get this error.

@Crazyht
Copy link

Crazyht commented Nov 21, 2017

it's the same error : #482 ? No ?

I still in Ng 4 for now, so I haven't this :)
Note too, I setup node 6 in docker, maybe you use other recent version.

@MarkPieszak
Copy link
Member

MarkPieszak commented Jan 23, 2018

We should be all set now that 5.0 production builds are fixed (and merged into Master) via #538

Give it a shot and let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants