-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (55 loc) · 1.7 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
FROM ubuntu:xenial
ARG DEBIAN_FRONTEND=noninteractive
ENV TERM xterm-256color
ENV LC_CTYPE en_US.UTF-8
RUN apt-get update \
&& apt-get install -y --no-install-recommends apt-utils \
&& apt-get install -y \
lsb \
man \
git \
telnet \
vim \
curl \
wget \
zsh \
make \
bzip2 \
mtr \
openssh-server \
iputils-ping \
httping \
dnsutils \
libnet-ifconfig-wrapper-perl \
apt-transport-https \
ca-certificates \
software-properties-common \
supervisor \
supervisor-doc \
launchtool \
python \
python-pip \
python3 \
python3-pip \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" \
&& apt-get update \
&& apt-get install docker-ce -y \
&& apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* \
&& rm -f /etc/ssh/ssh_host_*_key
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"; \
chsh -s /bin/zsh
COPY zshrc /root/.zshrc
COPY dubuntu.zsh-theme /root/.oh-my-zsh/custom/dubuntu.zsh-theme
RUN wget "https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.256dark" \
&& dircolors -b dircolors.256dark > /root/.dircolors_source
COPY authorized_keys /root/.ssh/authorized_keys
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY entrypoint.sh /entrypoint.sh
VOLUME /shared
WORKDIR /shared
EXPOSE 22 80
CMD ["/entrypoint.sh"]