Minor Dockerfile changes

This commit is contained in:
Howard Abrams 2023-05-02 21:56:43 -07:00
parent 96db7ff63f
commit f7bfbf7d0c

View file

@ -990,6 +990,7 @@ Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][docker
(ha-local-leader :keymaps 'dockerfile-mode-map
"b" '("build" . dockerfile-build-buffer)
"B" '("build no cache" . dockerfile-build-no-cache-buffer)
"t" '("insert build tag" . ha-dockerfile-build-insert-header))
(defun ha-dockerfile-build-insert-header (image-name)
@ -998,10 +999,7 @@ Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][docker
(save-excursion
(goto-char (point-min))
(insert (format "## -*- dockerfile-image-name: \"%s\" -*-" image-name))
(newline)))
:hook
(dockerfile-mode . display-line-numbers-mode))
(newline))))
#+END_SRC
/Control/ Docker from Emacs using the [[https://github.com/Silex/docker.el][docker.el]] project: