A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/spotify/dockerfile-mode below:

spotify/dockerfile-mode: An emacs mode for handling Dockerfiles

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")

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4