chapel-lang/chapel

[Bug]: Dockerfile does not include a CMD command

Open

#25,955 建立於 2024年9月17日

在 GitHub 查看
 (1 留言) (1 反應) (1 負責人)Chapel (446 fork)auto 404
area: BTReasy / straightforwardgood first issuetype: Bug

倉庫指標

Star
 (2,010 star)
PR 合併指標
 (PR 指標待抓取)

描述

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"]

貢獻者指南