Skip to content

Instantly share code, notes, and snippets.

@FrankReh
Created May 10, 2017 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save FrankReh/66a687f85a5aa974b655145e2e0ef596 to your computer and use it in GitHub Desktop.
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
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