Skip to content

Instantly share code, notes, and snippets.

@jaidetree
Last active March 1, 2021 06:34
Show Gist options
  • Save jaidetree/9f57625888c2492dbe53f164076a3695 to your computer and use it in GitHub Desktop.
Save jaidetree/9f57625888c2492dbe53f164076a3695 to your computer and use it in GitHub Desktop.
A Dockerfile to install emacs and the latest doom. Expects user to mount over ~/.doom.d/ with a
FROM phusion/baseimage:18.04-1.0.0
RUN add-apt-repository ppa:kelleyk/emacs \
&& apt update \
&& apt install -y git emacs27 tmux vim sqlite3 wget
RUN git clone https://github.com/hlissner/doom-emacs.git ~/.emacs.d
# Might be needed if you want to pre-build the config but not required
# In which case run doom sync via shell
# COPY ./doom.d /root/.doom.d
RUN yes | ~/.emacs.d/bin/doom install
VOLUME /root/.doom.d
WORKDIR /root
CMD ["/usr/bin/emacs", "--daemon"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment