-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (62 loc) · 1.43 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
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM ubuntu:18.04
MAINTAINER boehm_s <[email protected]>
RUN export DEBIAN_FRONTEND=noninteractive
# basic stuff
RUN echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf \
&& apt-get update && apt-get install -yq \
bash \
build-essential \
dbus-x11 \
fontconfig \
git \
gzip \
language-pack-en-base \
libgl1-mesa-glx \
make \
sudo \
tar \
unzip \
# su-exec
&& git clone https://github.com/ncopa/su-exec.git /tmp/su-exec \
&& cd /tmp/su-exec \
&& make \
&& chmod 770 su-exec \
&& mv ./su-exec /usr/local/sbin/ \
# Cleanup
&& apt-get purge build-essential \
&& apt-get autoremove \
&& rm -rf /tmp/* /var/lib/apt/lists/* /root/.cache/*
# emacs dep
RUN apt-get update && apt-get install -yq \
libxaw3dxft8 \
libxaw3dxft8-dev \
libcairo2 \
libcairo2-dev \
librsvg2-common \
librsvg2-bin \
librsvg2-2 \
liblcms2-2 \
liblcms2-dev \
imagemagick-6-common \
libgpm2 \
libgpm-dev \
libgconf2-4 \
libgconf2-dev \
libselinux1 \
libselinux1-dev \
libm17n-0 \
libm17n-dev \
libotf-dev \
libsystemd0 \
libsystemd-dev \
libjansson4 \
libjansson-dev \
libgtk3.0-cil \
libgtk3.0-cil-dev
RUN git clone https://github.com/emacs-mirror/emacs \
&& cd emacs \
&& ./autogen.sh \
&& ./configure \
&& make -j8 \
&& make install
CMD ["bash", "-c", "/bin/bash"]