From 6efe7a22a0c7277adddb1fc11e496803246467f6 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sun, 23 Jun 2024 23:10:23 +0200 Subject: [PATCH] Add Docker build --- Dockerfile | 15 +++++++++++++++ build.el | 8 ++++++++ compose.yaml | 8 ++++++++ 3 files changed, 31 insertions(+) create mode 100644 Dockerfile create mode 100644 build.el create mode 100644 compose.yaml 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/