forked from holman/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (62 loc) · 1.39 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
FROM ubuntu:20.04
MAINTAINER Michael Mior <[email protected]>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update && \
apt-get install -qq -o=Dpkg::Use-Pty=0 \
autoconf \
build-essential \
bison \
cmake \
editorconfig \
flex \
cabal-install \
curl \
default-jre \
dirmngr \
ed \
git \
gnupg2 \
jq \
latexmk \
libbz2-dev \
libc6-dev \
libncurses-dev \
libreadline-dev \
libssl-dev \
libsqlite3-dev \
libtool \
libyaml-dev \
libxml2 \
locales \
ncurses-dev \
opam \
openssl \
php-cli \
pv \
python \
python-dev \
r-base \
racket \
sudo \
tmux \
xclip \
vim-nox \
wget \
zlib1g-dev \
zsh \
> /dev/null && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
RUN useradd -s /bin/zsh tester
ADD . /home/tester/.dotfiles
RUN chown -R tester:tester /home/tester && \
echo 'tester ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/tester && \
chmod 0440 /etc/sudoers.d/tester
USER tester
ENV HOME /home/tester
ENV TMUX y
ENV TMUX_PLUGIN_MANAGER_PATH "/home/tester/.tmux/plugins/"
ENV GIT_AUTHOR_NAME Michael Mior
ENV GIT_AUTHOR_EMAIL [email protected]
WORKDIR /home/tester/.dotfiles
RUN git submodule update --init
RUN ./script/install