forked from eea/eea.docker.cloud9
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (37 loc) · 1.64 KB
/
Dockerfile
File metadata and controls
44 lines (37 loc) · 1.64 KB
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 node:6-slim
MAINTAINER "EEA: IDM2 A-Team" <eea-edw-a-team-alerts@googlegroups.com>
LABEL authors="Andreas Sehr <andreas@softbrix.se>"
# ------------------------------------------------------------------------------
# Install dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential git pylint virtualenv python3-dev python3-pip openssh-server \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& pip3 install chaperone \
&& mkdir /etc/chaperone.d /cloud9 /var/run/sshd
# ------------------------------------------------------------------------------
# Get cloud9 source and install
WORKDIR /cloud9
RUN git clone https://github.com/c9/core.git . \
&& scripts/install-sdk.sh \
&& sed -i -e 's_127.0.0.1_0.0.0.0_g' configs/standalone.js \
&& sed -i -e 's_message: "-d all -e E -e F",_message: "-d all -e E,F,W",_g' plugins/c9.ide.language.python/python.js \
&& mkdir workspace
# ------------------------------------------------------------------------------
# Add workspace volumes
VOLUME /cloud9/workspace
# ------------------------------------------------------------------------------
# Set default workspace dir
ENV C9_WORKSPACE /cloud9/workspace
ENV AUTHORIZED_KEYS **None**
# ------------------------------------------------------------------------------
# Configuration
COPY conf/chaperone.conf /etc/chaperone.d/chaperone.conf
ADD sshd.sh /sshd.sh
# ------------------------------------------------------------------------------
# Expose ports.
EXPOSE 8080 22
# ------------------------------------------------------------------------------
# Start
ENTRYPOINT ["/usr/local/bin/chaperone"]