-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
21 lines (18 loc) · 874 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#syntax=docker/dockerfile:1
FROM manjarolinux/base
LABEL Description="This image creates a dockerized version of spacemacs with all external tools required. It persists the home dir of the local user in a volume this allows to save stuff and let emacs caches work as expected." Vendor="[email protected]" Version="2.0"
COPY . /installRepo
WORKDIR /installRepo
RUN sed -i 's/IgnorePkg.*/#IgnorePkg/' /etc/pacman.conf \
&& ./spacemacsAutoInstall_manjaro.sh "sudoRun" \
&& useradd -m spacemacs -U \
&& chown spacemacs:spacemacs /installRepo -R
USER spacemacs:spacemacs
RUN ./spacemacsAutoInstall_manjaro.sh \
&& mkdir -p /home/spacemacs/Documents \
&& mv ./GTD /home/spacemacs/Documents/GTD \
&& rm "${HOME}/.spacemacsInstall" -R
# Persist the home dir where spacemacs resides
VOLUME /home/spacemacs
# Define emacs as default command
CMD emacs