Skip to content
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

Set default ENTRYPOINT for distroless Dockerfiles on Mariner #3866

Closed
mthalman opened this issue Jun 22, 2022 · 1 comment
Closed

Set default ENTRYPOINT for distroless Dockerfiles on Mariner #3866

mthalman opened this issue Jun 22, 2022 · 1 comment
Assignees
Labels
area-dockerfiles enhancement needs-announcement An announcement is needed to discuss customer impact

Comments

@mthalman
Copy link
Member

mthalman commented Jun 22, 2022

In our normal (non-distroless) Dockerfiles, we don't use an ENTRYPOINT instruction in the runtime/aspnet/sdk Dockerfiles to allow downstream consumers to easily decide which command/executable they want. But for distroless Dockerfiles, there's literally only one executable in the whole container: dotnet. So we may as well set that as the default:

ENTRYPOINT ["/usr/bin/dotnet"]
CMD ["--info"]

In that case, the proposal would be to set the default command with the --info option.

@mthalman mthalman added needs-announcement An announcement is needed to discuss customer impact enhancement and removed untriaged labels Jun 23, 2022
@mthalman
Copy link
Member Author

We'll apply this starting with .NET 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dockerfiles enhancement needs-announcement An announcement is needed to discuss customer impact
Projects
Status: Done
Development

No branches or pull requests

1 participant