Skip to content

dotnet publish inside Dockerfile doesn't work on 8.0-alpine #5333

Answered by MichaelSimons
rcdailey asked this question in Q&A
Discussion options

You must be logged in to vote

Do you have a .dockerignore? The COPY . . can be interfering if you don't and you have built locally. From https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1005

If you're building a Docker image, make sure the .dockerignore file ignores the bin and obj directories. For more information, see GitHub pull request dotnet/docs #29530.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@rcdailey
Comment options

@rcdailey
Comment options

@MichaelSimons
Comment options

Answer selected by rcdailey
Comment options

You must be logged in to vote
1 reply
@rcdailey
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants