-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (35 loc) · 1.49 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:rolling
MAINTAINER [email protected]
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y openssh-server supervisor python tmux zsh git vim build-essential python-dev sudo mosh libc6:i386 libncurses5:i386 libstdc++6:i386
# lxml and other Python package deps
RUN apt-get install -y libxml2-dev libxslt1-dev libffi-dev libssl-dev zlib1g-dev libasound2:i386
# dev tools
RUN apt-get install -y valgrind
RUN apt-get install -y command-not-found man-db
RUN apt-get install -y python3-venv
RUN apt-get install -y python3-dev libffi-dev libpcap-dev # comms deps
RUN apt-get install -y rsync
RUN printf "y\ny\n" | unminimize
# NodeJS
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y locales
RUN locale-gen en_US.UTF-8
RUN update-locale
ENV LANG en_US.UTF-8
RUN mkdir /Users
RUN useradd -ms /bin/zsh -u 768 -d /Users/mzhafn mzhafn
RUN addgroup mzhafn sudo
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN mkdir -p /var/run/sshd
RUN sed -i "s/UsePAM yes/UsePAM no/g" /etc/ssh/sshd_config # PAM stops me from logging in
RUN wget https://get.docker.com/ -O /tmp/docker.sh
RUN sh /tmp/docker.sh
RUN echo "Port 2222" >> /etc/ssh/sshd_config
RUN apt-get install -y net-tools tcpdump iputils-ping
RUN apt-get install -y pandoc texlive-xetex # Jupyter PDF creation
RUN apt-get install -y libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config # aiortc deps
VOLUME /Users/mzhafn
CMD ["/usr/bin/supervisord"]