summaryrefslogtreecommitdiffstats
path: root/sites/mediengewitter.krebsco.de/magnets/Dockerfile
blob: f966d9409262211fff30d642cc46932c750d5d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM    ubuntu:latest
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN apt-get update
RUN apt-get install -y python-software-properties python g++ make
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get -y install nodejs curl
RUN mkdir -p /opt/magnets
Add magnets/ /magnets
RUN cd /magnets && npm install 
# fix crappy wwwdude
RUN cp /magnets/node_modules/wwwdude/lib/wwwdude/node-versions/v0.5.x.js /magnets/node_modules/wwwdude/lib/wwwdude/node-versions/v0.10..js
# -v /media/ext/magnet_pics/:/images
ENV image_folder /images
CMD ["/magnets/run.sh"]