-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
26 lines (21 loc) · 991 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# mediacloud_backend
#
# VERSION 0.1.0
FROM ubuntu
MAINTAINER Álvaro Justen <[email protected]>
# update the package list
RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list
RUN apt-get update
# install system dependencies and clean APT cache
RUN apt-get -y install python-dev python-pip wget build-essential libxml2-dev libxslt1-dev zlib1g-dev libssl-dev mongodb
RUN apt-get clean
# download, compile and install httrack
RUN wget -O /tmp/httrack.tar.gz http://download.httrack.com/cserv.php3?File=httrack.tar.gz
RUN cd /tmp; tar xfz httrack.tar.gz
RUN cd /tmp/httrack-*; ./configure && make && make install
RUN ln -s /usr/local/lib/libhttrack.* /usr/lib/
RUN rm -rf /tmp/httrack*
# install Python dependencies from PyPI using pip
ADD ./capture/ /srv/mediacloud_backend/capture/
ADD ./requirements.txt /srv/mediacloud_backend/
RUN cd /srv/mediacloud_backend/; pip install -r requirements.txt