-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 840 Bytes
/
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
FROM ubuntu
MAINTAINER Stefan Schoeffmann, <stefan.schoeffmann@posteo.de>
ARG PASSWORD=vimux
ENV LANG=C.UTF-8
# install a bunch of tools (especially vim && tmux)
RUN apt-get update && \
apt-get install -y sudo git zsh tmux vim tree curl && \
useradd -u 1000 -r -U -m -s /bin/zsh vimux && \
mkdir /home/vimux/.zsh && \
echo vimux:${PASSWORD} | chpasswd && \
adduser vimux sudo
# change to a non-privileged user
USER vimux
# add a bunch of settings so all tools work as expected
RUN git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
COPY ./assets/vimrc /home/vimux/.vimrc
COPY ./assets/tmux.conf /home/vimux/.tmux.conf
COPY ./assets/zshrc /home/vimux/.zshrc
COPY ./assets/zsh /home/vimux/.zsh
# define a workspace directory (convention demands 'data')
VOLUME /data
WORKDIR /data
ENTRYPOINT /bin/zsh