forked from neuhausler/nuclide-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (35 loc) · 1.34 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
FROM bitnami/minideb
ENV IMAGE_NUCLIDE_VERSION=0.357.0 \
WATCHMAN_VERSION=v4.9.0 \
HOME=/root
# Install Watchman and System packages required
RUN install_packages libssl-dev pkg-config libtool ca-certificates git build-essential \
autoconf python-dev libpython-dev autotools-dev automake && \
\
git clone https://github.com/facebook/watchman.git && \
cd watchman && \
git checkout ${WATCHMAN_VERSION} && \
./autogen.sh && \
./configure && \
make && make install && \
\
apt-get remove --purge -y libssl-dev pkg-config libtool build-essential autoconf \
python-dev libpython-dev autotools-dev automake && \
apt-get autoremove -y && rm -rf /var/lib/apt/lists/* && \
cd / && rm -rf watchman
# Install SSH server
RUN install_packages openssh-server && mkdir /var/run/sshd
# SSHD scrubs the environment
# http://stackoverflow.com/questions/36292317/why-set-visible-now-in-etc-profile
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
# Install Node.js
RUN install_packages curl ca-certificates gnupg2 && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
install_packages nodejs
# Install Nuclide Remote Server
RUN npm install -g nuclide@${IMAGE_NUCLIDE_VERSION} && \
rm -rf /root/.npm/*
COPY rootfs /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/sbin/sshd", "-D"]