-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (50 loc) · 1.35 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
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_PACKAGES="\
lsb \
man \
git \
vim \
curl \
wget \
zsh \
make \
bzip2 \
mtr \
openssh-server \
iputils-ping \
libnet-ifconfig-wrapper-perl \
linux-image-extra-4.8.0-36-generic \
linux-image-extra-virtual \
apt-transport-https \
ca-certificates \
software-properties-common \
supervisor \
supervisor-doc \
launchtool \
"
ARG TERM=xterm-256color
VOLUME /shared
WORKDIR /root
EXPOSE 22 80 8080 1080 8000
COPY sources.list /etc/apt/sources.list
COPY dircolors /root/.dircolors
COPY authorized_keys /root/.ssh/authorized_keys
RUN apt-get update && \
apt-get install -y --no-install-recommends apt-utils && \
apt-get install -y $INSTALL_PACKAGES && \
apt-get upgrade -y && \
curl -fsSL https://yum.dockerproject.org/gpg | apt-key add - && \
add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main" && \
apt-get update && \
apt-get -y install docker-engine && \
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 robbyrussell.zsh-theme /root/.oh-my-zsh/themes/robbyrussell.zsh-theme
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN dircolors -b ~/.dircolors >> ~/.zshrc
CMD ["/usr/bin/supervisord"]