Skip to content
Discussion options

You must be logged in to vote

by design, azd does not support passing -p ContainerBaseImage when running dotnet publish.
You need to set the base image into the project, like: https://learn.microsoft.com/dotnet/core/docker/publish-as-container?pivots=dotnet-8-0#containerbaseimage

Then when azd runs dotnet publish, dotnet will use that base image you set :)

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
14 replies
@LanceMcCarthy
Comment options

@vhvb1989
Comment options

Answer selected by LanceMcCarthy
@LanceMcCarthy
Comment options

@LanceMcCarthy
Comment options

@timheuer
Comment options

@LanceMcCarthy
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
5 participants