forked from Nold360/docker-grab-site
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (25 loc) · 921 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
27
28
29
30
31
FROM python:3.7-slim-stretch
ENV BUILD_PACKAGES="git build-essential" \
PACKAGES="libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libffi-dev libxml2-dev libxslt1-dev libre2-dev pkg-config"
# Install requirements
RUN apt-get update && \
apt-get install --no-install-recommends -y $BUILD_PACKAGES $PACKAGES
# Install proxychains-ng
RUN cd /tmp/ && git clone https://github.com/rofl0r/proxychains-ng.git && \
cd proxychains-ng && \
./configure && \
make && \
make install
# Install grab-site
RUN pip3 install --no-binary lxml --upgrade git+https://github.com/ArchiveTeam/grab-site
# Clean up
RUN apt-get purge -y \
$BUILD_PACKAGES pkg-config && \
apt-get autoremove -y && apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
VOLUME /data
VOLUME /finished
WORKDIR /data
EXPOSE 29000
COPY ["proxychains.conf", "/etc/proxychains.conf"]
CMD ["python", "/usr/local/bin/gs-server"]