summaryrefslogtreecommitdiffstats
path: root/sites/mediengewitter.krebsco.de/mediengewitter/Dockerfile
blob: dbfb2a8bb9656f3bb1ecd5e02fd0ea8ca5631291 (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
Add mediengewitter/ /mediengewitter
RUN cd /mediengewitter && npm install 
# -v /media/ext/magnet_pics/:/images
EXPOSE 8080
ENV PORT 8080
RUN rm /mediengewitter/public/content -r
RUN ln -s /images /mediengewitter/public/content
CMD ["/mediengewitter/run.sh"]