Add Docker build
Some checks are pending
Gitea Actions Deploy / deploy (push) Waiting to run

This commit is contained in:
Andros Fenollosa 2024-06-23 23:10:23 +02:00
parent 26cbc5313c
commit 6efe7a22a0
3 changed files with 31 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -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

8
build.el Normal file
View File

@ -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))

8
compose.yaml Normal file
View File

@ -0,0 +1,8 @@
services:
one-el:
build: .
restart: "no"
volumes:
- .:/usr/src/app/