github-linguist / github-linguist/linguist

Unable to recognise Dockerfiles with extensions

Open
#4,566 10 comments 14 reactions 1 assignee Claimed by @Alhadis View on GitHub
Dominant language
Ruby
Stars
13.7k
Forks
5.4k
Avg merge
1d 15h
Merged PRs (30d)
17

Description

## Preliminary Steps

Please confirm you have...
- [x] reviewed [How Linguist Works](https://github.com/github/linguist#how-linguist-works),
- [x] reviewed the [Troubleshooting](https://github.com/github/linguist#troubleshooting) docs,
- [x] considered implementing an [override](https://github.com/github/linguist#overrides),
- [x] verified an issue has not already been logged for your issue ([linguist issues](https://github.com/issues?utf8=%E2%9C%93&q=is%3Aissue+repo%3Agithub/linguist)).

## Problem Description
We can name a dockerfile multiple ways. Usual way is to name it as it is either `Dockerfile` or `dockerfile` in this case GitHub recognizes a dockerfile. But it's a usual practice that developers name them with extensions like `Dockerfile.dev` or `Dockerfile.prod` or similar to it. In these case GitHub fails to recognize them as Dockerfiles.

### URL of the affected repository:
All repos using Dockerfiles with extensions.
examples:
https://github.com/kmehant/foundation.mozilla.org/blob/master/dockerfiles/Dockerfile.node
### Last modified on:

### Expected language:

Dockerfile
### Detected language:

nothing

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.