Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
382264e
commit 1e2187d
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM debian:latest | ||
MAINTAINER Ankit R Gadiya <me@argp.in> | ||
|
||
# Install Packages | ||
RUN apt-get update && apt-get install -y \ | ||
python \ | ||
make \ | ||
g++ \ | ||
build-essential \ | ||
libssl-dev \ | ||
apache2-utils \ | ||
libxml2-dev \ | ||
git \ | ||
curl \ | ||
locales \ | ||
tmux | ||
|
||
# Fix locale | ||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ | ||
&& locale-gen | ||
|
||
# Install node | ||
RUN git clone https://github.com/creationix/nvm.git ~/.nvm | ||
RUN bash -c "source ~/.nvm/nvm.sh && nvm install 0.10;" | ||
|
||
# C9 Core | ||
RUN git clone https://github.com/c9/core.git ~/c9sdk | ||
RUN cd ~/c9sdk && ./scripts/install-sdk.sh | ||
|
||
# Script | ||
COPY init.sh ~/.init.sh | ||
|
||
# Server | ||
EXPOSE 3000 | ||
CMD ["bash", "~/.init.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /bin/bash | ||
|
||
source ~/.nvm/nvm.sh | ||
cd ~ && mkdir workspace | ||
cd ~/c9sdk | ||
node server.js -p 3000 -a : -w '/root/workspace/' --listen 0.0.0.0 |