-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
37 lines (37 loc) · 1.88 KB
/
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
32
33
34
35
36
37
ARG TLSTYPE=openssl
FROM atdr.meo.ws/archiveteam/wget-lua:v1.21.3-at-${TLSTYPE} AS wget
FROM python:3.9-slim-bookworm
LABEL version="20241119.01"
COPY --from=wget /wget /usr/local/bin/wget-lua
COPY --from=wget /usr/local/lib /usr/local/lib
RUN ldconfig
ENV LC_ALL=C
RUN DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io update \
&& DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io upgrade \
&& DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io install \
gzip sudo rsync gcc git libluajit-5.1-dev luarocks \
# for PDF to HTML conversion
poppler-utils \
# for lua 'idn2'
libidn2-dev \
# for lua 'luasec'
libssl-dev \
# for lua 'luazip'
libzzip-dev \
libpsl5 \
&& rm -rf /var/lib/apt/lists/*
RUN chmod +x /usr/local/bin/wget-lua
RUN /usr/local/bin/wget-lua --help | grep -iE "gnu|warc|lua|dns|host|resolv"
COPY rocks/requirements-0-0.rockspec /tmp/rocks/requirements-0-0.rockspec
COPY rocks/miniblooms-0.5-2.rockspec /tmp/rocks/miniblooms-0.5-2.rockspec
COPY requirements.txt /tmp/requirements.txt
WORKDIR /tmp
RUN luarocks install rocks/miniblooms-0.5-2.rockspec
RUN luarocks install --only-deps rocks/requirements-0-0.rockspec
RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /grab
ONBUILD COPY . /grab
ONBUILD RUN (test -x warrior-install.sh || touch warrior-install.sh) && sh warrior-install.sh
ONBUILD RUN ln -fs /usr/local/bin/wget-lua /grab/wget-at
STOPSIGNAL SIGINT
ENTRYPOINT ["run-pipeline3", "--disable-web-server", "pipeline.py"]