Skip to content

Instantly share code, notes, and snippets.

@rsbohn
Created August 11, 2014 13:00
Show Gist options
  • Save rsbohn/72d641b6c32ec051a94f to your computer and use it in GitHub Desktop.
Save rsbohn/72d641b6c32ec051a94f to your computer and use it in GitHub Desktop.
nodewiki in a container
# 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
cd /var/www && nodewiki
@rsbohn
Copy link
Author

rsbohn commented Aug 11, 2014

TODO: put /var/www on an external filesystem. Or at least provide instructions for extracting a copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment