chapel-lang/chapel
View on GitHub[Bug]: Dockerfile does not include a CMD command
Open
#25,955 opened on Sep 17, 2024
area: BTReasy / straightforwardgood first issuetype: Bug
Repository metrics
- Stars
- (2,010 stars)
- PR merge metrics
- (PR metrics pending)
Description
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
CMDorENTRYPOINTcommands. NoCMDand noENTRYPOINTis 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"]