Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compiling Dockerfile #54

Open
Hektic130 opened this issue Dec 10, 2023 · 3 comments
Open

Compiling Dockerfile #54

Hektic130 opened this issue Dec 10, 2023 · 3 comments

Comments

@Hektic130
Copy link

It looks like the Dockerfile is named dockerfile with a lowercase "d". Docker is case-sensitive, and it expects the file to be named exactly Dockerfile with an uppercase "D".

To fix this, you can either rename your existing Dockerfile to Dockerfile using the following command:

bash
mv dockerfile Dockerfile

@mjbear
Copy link

mjbear commented Nov 29, 2024

It looks like the Dockerfile is named dockerfile with a lowercase "d". Docker is case-sensitive, and it expects the file to be named exactly Dockerfile with an uppercase "D".

To fix this, you can either rename your existing Dockerfile to Dockerfile using the following command:

bash mv dockerfile Dockerfile

@Hektic130
It's possible to pass docker build a non-standard Dockerfile name.

docker build -f dockerfile .

However depending on the intentions of the project, it may make more sense to rename the file to Dockerfile within the project once and for all. 😁

@mjbear
Copy link

mjbear commented Nov 29, 2024

@lgandx
I'd be glad to work on the Dockerfile a bit.
(In addition to the naming I think I've found some optimizations.)

Is there a reason it couldn't be renamed from dockerfile to Dockerfile (titlecase)?

Thank you!

@mjbear
Copy link

mjbear commented Nov 30, 2024

It looks like the Dockerfile is named dockerfile with a lowercase "d". Docker is case-sensitive, and it expects the file to be named exactly Dockerfile with an uppercase "D".
To fix this, you can either rename your existing Dockerfile to Dockerfile using the following command:
bash mv dockerfile Dockerfile

@Hektic130 It's possible to pass docker build a non-standard Dockerfile name.

docker build -f dockerfile .

However depending on the intentions of the project, it may make more sense to rename the file to Dockerfile within the project once and for all. 😁

Update: @Hektic130
I should have built an image the other day so I would have seen first hand that dockerfile (all lowercase) is picked up automatically by docker build. Maybe this changed in later Docker versions though I haven't found documentation of that.

Best I can see there's no mention in the Docker documentation for Dockerfiles of the support for all lowercase file name (instead of titlecase, but all lowercase works). 🤷‍♂️😁

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants