forked from JAremko/drop-in
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (36 loc) · 1.05 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
FROM jare/vim-bundle
MAINTAINER JAremko <w3techplaygound@gmail.com>
USER root
COPY sshd_config /etc/ssh/sshd_config
COPY init-vim.sh /tmp/init-vim.sh
COPY tmux.conf $UHOME/.tmux.conf
RUN echo "http://nl.alpinelinux.org/alpine/edge/testing" \
>> /etc/apk/repositories \
&& echo "http://nl.alpinelinux.org/alpine/edge/community" \
>> /etc/apk/repositories \
&& apk --no-cache add \
bash \
curl \
git \
htop \
libseccomp \
mosh-server \
openrc \
openssh \
tmux \
py2-pip \
&& git clone https://github.com/tmux-plugins/tmux-yank.git \
$UHOME/.tmux/tmux-yank \
&& pip install powerline-status \
&& echo "set shell=/bin/bash" \
>> $UHOME/.vimrc~ \
&& sh /tmp/init-vim.sh
RUN rc-update add sshd \
&& rc-status \
&& touch /run/openrc/softlevel \
&& /etc/init.d/sshd start > /dev/null 2>&1 \
&& /etc/init.d/sshd stop > /dev/null 2>&1
# ssh mosh
EXPOSE 80 8080 62222 60001/udp
COPY start.bash /usr/local/bin/start.bash
ENTRYPOINT ["bash", "/usr/local/bin/start.bash"]