docker-library / buildpack-deps

MIT License
445 stars 113 forks source link

Audio/ogg mime type cannot be recognized #76

Closed idobrodushniy closed 6 years ago

idobrodushniy commented 6 years ago

I have the file with mime type audio/ogg, then I put this file into docker-container with python3:latest, where is using buildpack-deps:jessie and in debian file system file has mime type application/octet-stream. Seems, that system just can't recognize the mime type and sets default type( application/octet-stream). I have tried to update the mime types lib, but it didn't give any results. Really need your help.

yosifkit commented 6 years ago

file is showing the correct audio/ogg mime type. So perhaps it is something in your python application or libraries?

$ docker run -it buildpack-deps:jessie

$ find / | grep ogg
/usr/share/mime/audio/ogg.xml

$ wget https://upload.wikimedia.org/wikipedia/commons/c/c8/ample.ogg

$ file --mime-type Example.ogg
Example.ogg: audio/ogg

Since this is not an issue with the buildpack-deps image, in the future, it'd be better to post questions like this in the Docker Community Forums, the Docker Community Slack, or Stack Overflow.