-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (16 loc) · 750 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
FROM node:11
MAINTAINER Andrew Ghostuhin <[email protected]>
ENV HOME /cloud9/home
RUN mkdir -p /cloud9/home/.c9
RUN mkdir /workspace
ADD user.settings /cloud9/home/.c9/
ADD project.settings /cloud9/home/.c9/
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq git-core locales zip
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && echo "LANG=en_US.UTF-8" > /etc/locale.conf && locale-gen en_US.UTF-8
RUN git clone https://github.com/c9/core.git /cloud9/sdk
RUN /cloud9/sdk/scripts/install-sdk.sh
VOLUME /workspace
EXPOSE 80
EXPOSE 3000
ENTRYPOINT ["/cloud9/sdk/server.js", "--port", "80", "-w", "/workspace", "--listen", "0.0.0.0", "--packed"]
CMD ["-a", ":"]