cd /var/www && nodewiki
Created
August 11, 2014 13:00
-
-
Save rsbohn/72d641b6c32ec051a94f to your computer and use it in GitHub Desktop.
nodewiki in a container
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
# container for xiti | |
## currently we use nodewiki but expect that to change | |
## see package.json | |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y python-software-properties | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list | |
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
RUN apt-get update | |
RUN apt-get -y install apt-utils nodejs | |
ADD . /var/www | |
RUN npm install -g nodewiki | |
EXPOSE 8888 | |
CMD ["sh", "/var/www/Startup.md"] | |
### cp Zipperneck.md Dockerfile && sudo docker build -t rsbohn/xiti . | |
### ... --rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO: put /var/www on an external filesystem. Or at least provide instructions for extracting a copy.