-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
45 lines (33 loc) · 1.23 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
FROM ubuntu:latest
MAINTAINER Ali Diouri <[email protected]>
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
sudo \
git \
wget \
vim \
tmux \
zip \
curl \
python3-pip && \
apt clean
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN adduser --disabled-password --gecos "" devdocker &&\
echo "devdocker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/devdocker
USER devdocker
ENV HOME /home/devdocker
WORKDIR /home/devdocker
ADD .vimrc $HOME/
ADD .bashrc $HOME/
ADD .tmux.conf $HOME/
RUN sudo chown devdocker:devdocker $HOME/.vimrc $HOME/.bashrc $HOME/.tmux.conf &&\
sudo chmod 644 $HOME/.vimrc $HOME/.bashrc $HOME/.tmux.conf
RUN mkdir -p ~/.vim/autoload/ &&\
wget -O ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim &&\
vim +'PlugInstall --sync' +qa
RUN source $HOME/.bashrc &&\
pip3 install --user git+https://github.com/powerline/powerline
CMD ["tmux", "-2u"]