Skip to content
An emacs mode for handling Dockerfiles
Emacs Lisp
Latest commit 53434af Jan 28, 2016 @drewcsillag drewcsillag Merge pull request #23 from nabeo/add_stopsignal_to_font_lock_keywaords
add a STOPSIGNAL Dockerfile instruction to font lock keywords

README.md

dockerfile-mode

Known to work with Emacs 24 and later

A Dockerfile mode for emacs

(add-to-list 'load-path "/your/path/to/dockerfile-mode/")
(require 'dockerfile-mode)
(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))

Adds syntax highlighting as well as the ability to build the image directly (C-c C-b) from the buffer.

You can specify the image name in the file itself by adding a line like this at the top of your Dockerfile.

## -*- docker-image-name: "your-image-name-here" -*-

If you don't, you'll be prompted for an image name each time you build.

Something went wrong with that request. Please try again.