Skip to content

Commit

Permalink
Use silex's emacs docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
chuxubank committed Jan 31, 2024
1 parent 43a4d48 commit 2d22d85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax = docker/dockerfile:1.2
FROM archlinux
FROM archlinux as builder

RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \
gpgconf --kill gpg-agent && \
Expand Down Expand Up @@ -28,4 +28,8 @@ RUN echo "(custom-set-variables '(use-short-answers t))" > /root/.emacs.d/custom
RUN --mount=type=cache,sharing=locked,target=/root/.emacs.d/elpa \
yes | emacs --fg-daemon --debug-init --eval "(kill-emacs)"

FROM silex/emacs:alpine

COPY --from=builder /root/.emacs.d /root/.emacs.d

CMD ["emacs"]

0 comments on commit 2d22d85

Please sign in to comment.