Commit cd85af720020
Changed files (3)
.dockerignore
@@ -0,0 +1,2 @@
+.emacs.d/elpa
+.git
\ No newline at end of file
Dockerfile
@@ -0,0 +1,9 @@
+FROM alpine
+RUN addgroup emacs && adduser -D -G emacs emacs && \
+ apk update && apk add emacs-x11 git xterm \
+ ttf-ubuntu-font-family ttf-droid
+COPY . /home/emacs
+RUN mkdir -p /home/emacs/desktop/org/todos
+WORKDIR /home/emacs
+RUN chown -R emacs:emacs .
+USER emacs
run-emacs.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+docker build -t vdemeester/emacs .
+docker run -it --rm \
+ -v /tmp/.X11-unix:/tmp/.X11-unix \
+ -v $HOME/.Xauthority:/home/emacs/.Xauthority \
+ -e DISPLAY \
+ vdemeester/emacs emacs