Syntax highlighting for Dockerfile in Sublime Text?

Of course you can, by installing this package from Package Control:

  • Dockerfile Syntax Highlighting, https://packagecontrol.io/packages/Dockerfile%20Syntax%20Highlighting

for mac

Press cmd(⌘)-shift-p and type "add repo".
Then paste in the GitHub address for this package:

https://github.com/jaytaylor/Dockerfile.sublime-syntax

Press cmd(⌘)-shift-p and type "install".
Enter "Dockerfile.sublime-syntax" and press enter.

for windows

the same just replace cmd(⌘) with Ctrl
Now you're all set! Enjoy!