-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 1005 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# syntax = docker/dockerfile:1.2
FROM silex/emacs as builder
ARG CI
ENV CI=$CI
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
--mount=type=cache,sharing=locked,target=/var/lib/apt \
apt-get -y update && apt-get --no-install-recommends install -y \
aspell-en \
elpa-pdf-tools-server \
gh \
git \
make \
p7zip \
tzdata
COPY . /root/.config/emacs
RUN echo "(custom-set-variables \
'(use-short-answers t) \
'(package-native-compile t) \
'(system-packages-use-sudo nil) \
)" > $HOME/.config/emacs-custom.el
RUN --mount=type=cache,sharing=locked,target=$HOME/.config/emacs/elpa \
--mount=type=cache,sharing=locked,target=$HOME/.config/emacs/eln-cache \
yes | emacs --fg-daemon --debug-init -kill
RUN --mount=type=cache,sharing=locked,target=$HOME/.config/emacs/elpa \
--mount=type=cache,sharing=locked,target=$HOME/.config/emacs/eln-cache \
make -C $HOME/.config/emacs/elpa/org-mode compile autoloads
ENTRYPOINT ["emacs"]