Go to file
Takashi Masuda 39a012a27f Remove unnecessary require 2024-03-24 06:10:44 -04:00
.gitignore Add .elc files to .gitignore 2021-02-28 19:52:35 -05:00
LICENSE Added essentials 2013-08-06 14:38:49 -04:00
README.md Remove unnecessary configuration 2022-08-20 13:19:40 -04:00
dockerfile-mode.el Remove unnecessary require 2024-03-24 06:10:44 -04:00

README.md

dockerfile-mode

Known to work with Emacs 24 and later

If you just want to use it, you can get it via MELPA.

A Dockerfile mode for emacs

(add-to-list 'load-path "/your/path/to/dockerfile-mode/")
(require 'dockerfile-mode)

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

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

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

If you don't, you'll be prompted for an image name each time you build. You may want to add the following to your emacs config:

(put 'dockerfile-image-name 'safe-local-variable #'stringp)

You can change the binary to use with

(setq dockerfile-mode-command "docker")