Files
emacs-docker/Dockerfile
haxala1r 8fc5281f1a
All checks were successful
Build the docker image / build (push) Successful in 7m24s
Changes to dockerfile + more intricate .emacs file
2025-06-09 18:00:10 +03:00

22 lines
560 B
Docker

FROM debian
# install emacs + clang + clangd as LSP.
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y emacs build-essential git make cmake clang clang-format clangd && \
apt clean all && \
rm -rf /var/lib/apt/lists/*
# copy emacs config
COPY emacs-init /root/.emacs
# install emacs packages by running once beforehand,
# so we don't have to that every start-up
RUN emacs --batch -l /root/.emacs \
--eval "(package-refresh-contents)" \
--eval "(package-install-selected-packages)"
ENTRYPOINT ["/bin/emacs", "-nw"]