forked from emacs-lsp/lsp-gitpod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
74 lines (67 loc) · 1.94 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
72
73
74
FROM ubuntu:22.10
MAINTAINER Hippie Hacker <[email protected]>
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install --yes \
software-properties-common \
ripgrep \
fasd \
libtool-bin \
bash-completion \
ca-certificates \
curl \
direnv \
dnsutils \
fd-find \
file \
gettext-base \
git \
gnupg2 \
htop \
iftop \
iproute2 \
iputils-ping \
jq \
kitty \
less \
locate \
net-tools \
openssh-client \
sudo \
tcpdump \
tmux \
tree \
tzdata \
unzip \
vim \
wget \
xz-utils \
sudo
# Created a ppa for emacs + broadway&nativecomp (build/Dockerfile has some of the process documented)
# We need a custom build to run against broadwayd
# https://launchpad.net/~hippiehacker/+archive/ubuntu/emacs-broadway
RUN add-apt-repository ppa:hippiehacker/emacs-broadway --yes && \
DEBIAN_FRONTEND="noninteractive" apt-get install --yes emacs-snapshot emacs-snapshot-el
# Use upstream stable git
RUN add-apt-repository ppa:git-core/ppa --yes && \
DEBIAN_FRONTEND="noninteractive" apt-get install --yes git
# Add a user `coder` so that you're not developing as the `root` user
RUN useradd coder \
--create-home \
--shell=/bin/bash \
--uid=1000 \
--user-group && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd
RUN chgrp coder -R /usr/local/bin && \
chmod 775 -R /usr/local/bin
ARG KUBECTL_VERSION=1.24.2
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
USER coder
WORKDIR /home/coder
RUN git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
RUN git clone --depth 1 https://github.com/humacs/.doom.d ~/.doom.d
RUN yes | $HOME/.emacs.d/bin/doom install --no-env
RUN $HOME/.emacs.d/bin/doom sync
# RUN $HOME/.emacs.d/bin/doom sync
# # COPY fonts/* /home/gitpod/.local/share/fonts/
# # RUN mkdir -p /home/gitpod/.local/share/fonts/