#4566·linguist

Unable to recognise Dockerfiles with extensions

Author: kmehantCreated Jun 28, 2019Updated Jun 3, 2026

Preliminary Steps

Please confirm you have...

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

Source: github-linguist/linguist