diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..06f6043 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM debian:12-slim + +# set work directory +WORKDIR /usr/src/app + +# Print output +RUN export TERM=xterm + +# install software +RUN apt update +RUN apt install -y emacs-nox + +# Build +COPY build.el . +ENTRYPOINT emacs --batch --script build.el diff --git a/build.el b/build.el new file mode 100644 index 0000000..d4e8b64 --- /dev/null +++ b/build.el @@ -0,0 +1,8 @@ +(progn + (require 'package) + (add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/") t) + (package-initialize) + (package-refresh-contents) + (package-install 'one) + (one-build)) diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..86be3bd --- /dev/null +++ b/compose.yaml @@ -0,0 +1,8 @@ + +services: + + one-el: + build: . + restart: "no" + volumes: + - .:/usr/src/app/