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

[Bug]: Dockerfile does not include a CMD command #25955

Open
ShreyasKhandekar opened this issue Sep 17, 2024 · 1 comment
Open

[Bug]: Dockerfile does not include a CMD command #25955

ShreyasKhandekar opened this issue Sep 17, 2024 · 1 comment

Comments

@ShreyasKhandekar
Copy link
Contributor

Summary of Problem

Our Dockerfile for Chapel does not include a CMD nor an ENTRYPOINT.
From the Docker docs: https://docs.docker.com/reference/dockerfile/#understand-how-cmd-and-entrypoint-interact

Dockerfile should specify at least one of CMD or ENTRYPOINT commands.
No CMD and no ENTRYPOINT is an error, and is not allowed.

How does our Docker image build successfully then?
We inherit the default CMD command from the debian 11 image which we use as our base.

We should not rely on this behavior from debian, and instead should add a line to our Dockerfile that says

CMD ["/bin/bash"]
@madhav-madhusoodanan
Copy link

Hi, may I take this up?

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

No branches or pull requests

2 participants