-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (24 loc) · 845 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
31
32
33
FROM debian:jessie
COPY rootf /usr/local/bin
# Configure Node.js repository
RUN node_setup_7.x
# System packages required
RUN install_packages nodejs openssh-server gcc make automake autoconf git python-dev libpython-dev
# Install Watchman
RUN git clone https://github.com/facebook/watchman.git \
&& cd watchman \
&& git checkout v4.7.0 \
&& ./autogen.sh \
&& ./configure \
&& make && make install
# Configure SSH server
RUN echo 'root:nuclide' | chpasswd \
&& sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \
&& mkdir /var/run/sshd
# Install Nuclide Remote Server
RUN npm install -g nuclide
VOLUME ["/projects"]
EXPOSE 22 9090
# Start ssh service
CMD ["/usr/sbin/sshd", "-D"]