From 2d22d85dc941dfaeb5b9e8e5f3767e958aabee46 Mon Sep 17 00:00:00 2001 From: Misaka Date: Wed, 31 Jan 2024 11:40:58 +0800 Subject: [PATCH] Use silex's emacs docker image --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index caebf47..f1b85bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ @@ -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"]