This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
58 lines (47 loc) · 1.55 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM spacemacs/emacs25:develop
MAINTAINER JAremko <w3techplaygound@gmail.com>
ENV UNAME="jare"
ENV CHROME_KEY="https://dl-ssl.google.com/linux/linux_signing_key.pub" \
CHROME_REP="deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
RUN apt-get update \
&& apt-get install \
curl \
gcc \
python \
rlwrap \
silversearcher-ag \
wget \
&& wget -q -O - "${CHROME_KEY}" | apt-key add - \
&& echo "${CHROME_REP}" >> /etc/apt/sources.list.d/google.list \
&& apt-get update \
&& apt-get install google-chrome-stable \
&& rm -rf /tmp/* /var/lib/apt/lists/* \
&& google-chrome \
--disable-gpu \
--headless \
--no-sandbox \
https://example.org/
COPY .spacemacs "${UHOME}/.spacemacs"
COPY private "${UHOME}/.emacs.d/private"
COPY .lein "${UHOME}/.lein"
# Install Spacemacs layers dependencies and init user
RUN install-deps
USER $UNAME
# Install Cask
ENV CASK_EMACS="/usr/bin/emacs"
RUN curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go \
| python \
&& sudo ln -s "${UHOME}/.cask/bin/cask" "/usr/local/bin/cask"
# Compile emacsql version of sqlite (used by ranger.el)
RUN emacs --batch -u $UNAME \
--eval="(require 'emacsql-sqlite)" \
--eval="(emacsql-sqlite-compile)"
# Configure git
RUN git config --global user.name JAremko \
&& git config --global user.email w3techplayground@gmail.com
# Install Clojure user level stuff
RUN echo "(defproject stub \"0.0.1-SNAPSHOT\")" > /tmp/project.clj \
&& cd /tmp/ \
&& lein deps \
&& rm -rf /tmp/*
USER root