Skip to content

Instantly share code, notes, and snippets.

@bradyt
Last active June 4, 2019 02:43
Show Gist options
  • Save bradyt/af9acc0f4bd9082817cd2483a0537ce5 to your computer and use it in GitHub Desktop.
Save bradyt/af9acc0f4bd9082817cd2483a0537ce5 to your computer and use it in GitHub Desktop.

Add the two files below to a new testing directory.

To build the image, use the following.

docker build . -t this_one

To enter the image, use the following.

docker run --rm -it this:one
FROM silex/emacs
ADD .emacs.d /root/.emacs.d
RUN emacs -batch -l ~/.emacs.d/init.el
WORKDIR /root/
CMD "bash"
;; .emacs.d/init.el
(setq package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(mapc 'package-install
(seq-remove 'package-installed-p '(magit auctex)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment