-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
28 lines (22 loc) · 881 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
FROM node:5.12-slim
#MAINTAINER Ryan J. McDonough "[email protected]"
MAINTAINER Raul Sanchez <[email protected]>
ENV SERVICE_HOME=/opt/cloud9 \
SERVICE_URL=https://github.com/c9/core.git \
SERVICE_WORK=/workspace
RUN mkdir -p $SERVICE_HOME $SERVICE_WORK && \
apt-get update && \
apt-get install -y python build-essential g++ libssl-dev apache2-utils git libxml2-dev && \
git clone $SERVICE_URL $SERVICE_HOME && \
cd $SERVICE_HOME && \
scripts/install-sdk.sh && \
sed -i -e 's_127.0.0.1_0.0.0.0_g' $SERVICE_HOME/configs/standalone.js && \
apt-get autoremove -y python build-essential libssl-dev g++ libxml2-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD root /
RUN chmod +x /tmp/*.sh
WORKDIR $SERVICE_WORK
EXPOSE 8080
ENTRYPOINT ["/tmp/start.sh"]
CMD ["--listen 0.0.0.0 -p 8080 -w $SERVICE_WORK"]