Skip to content

Instantly share code, notes, and snippets.

Created September 10, 2014 10:51
Show Gist options
  • Save anonymous/1f0273c57d770fc694f5 to your computer and use it in GitHub Desktop.
Save anonymous/1f0273c57d770fc694f5 to your computer and use it in GitHub Desktop.
A dockerfile for remotestorage/starter-kit.
# container for remotestorage
# docker build -t remotestorage:latest
# docker run -d -p 8001:8001 -p 8002:8002 remotestorage:latest
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 nodejs
RUN git clone https://github.com/remotestorage/starter-kit.git /opt/remotestorage
WORKDIR /opt/remotestorage
RUN npm install
EXPOSE 8001 8002
CMD ["node", "/opt/remotestorage/starter-kit"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment