Created
May 10, 2017 21:28
-
-
Save FrankReh/66a687f85a5aa974b655145e2e0ef596 to your computer and use it in GitHub Desktop.
Dockerfile to build Debian system capable of running Cappuccino with the node engine from my repos
This file contains hidden or 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
FROM debian:latest | |
RUN apt-get update && apt-get install -y \ | |
bash \ | |
build-essential \ | |
default-jre \ | |
g++ \ | |
git \ | |
python \ | |
sudo \ | |
tar \ | |
wget \ | |
xz-utils \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN useradd -ms /bin/bash docker && echo "docker:docker" | chpasswd && adduser docker sudo | |
RUN passwd -d docker | |
USER docker | |
WORKDIR /home/docker | |
RUN wget https://nodejs.org/dist/v7.7.2/node-v7.7.2-linux-x64.tar.xz | |
RUN tar -xf node-v7.7.2-linux-x64.tar.xz | |
RUN echo 'export PATH=$HOME/narwhal/bin:$HOME/node-v7.7.2-linux-x64/bin:$PATH' >> $HOME/.bashrc | |
RUN echo 'export NARWHAL_ENGINE=node' >> $HOME/.bashrc | |
RUN echo 'export CAPP_BUILD=/tmp/CAPP_BUILD' >> $HOME/.bashrc | |
RUN echo 'set -o vi' >> $HOME/.bashrc | |
RUN git clone https://github.com/FrankReh/cappuccino-base.git narwhal | |
RUN git clone https://github.com/FrankReh/cappuccino.git cappuccino | |
ENV PATH /home/docker/narwhal/bin:/home/docker/node-v7.7.2-linux-x64/bin:$PATH | |
RUN /home/docker/narwhal/packages/narwhal-node/bin/npm-install | |
CMD /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment