-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (35 loc) · 1.36 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Build
FROM phusion/baseimage:bionic-1.0.0 AS build
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y --no-install-recommends \
autoconf automake autopoint gettext texinfo gperf flex gcc git isc-dhcp-client \
libidn2-0 libc6 libpsl-dev libpcre3-dev pkg-config libzstd-dev libssl-dev zstd \
libgnutls28-dev liblua5.1-0 liblua5.1-0-dev make net-tools pciutils sudo \
python3 python3-pip python3-setuptools rsync software-properties-common wget curl
#RUN apt-get install -y libc-ares-dev
#libmetalink libcares
WORKDIR /app
RUN git clone --depth 1 --recurse-submodules https://github.com/ArchiveTeam/wget-lua.git
WORKDIR /app/wget-lua
RUN ./bootstrap
RUN ./configure --with-ssl=openssl
RUN make
# Production
FROM python:3.9.1-slim-buster
RUN apt update
RUN apt upgrade -y
RUN apt install -y git liblua5.1-0 rsync
RUN apt-get install -y luarocks
RUN pip3 install setuptools wheel
RUN pip3 install requests warcio
RUN pip3 install -e git+https://github.com/SrihariThalla/seesaw-kit.git@edbd09f9eb84d27dc6ac70834215034ebad8bf0f#egg=seesaw
RUN pip3 install zstandard
WORKDIR /app
RUN mkdir data
RUN mkdir projects
RUN git clone --depth 1 --recurse-submodules https://github.com/ArchiveTeam/warrior-code2.git
COPY --from=build /app/wget-lua/src/wget /usr/local/bin/wget-at
COPY start.py .
EXPOSE 8001
CMD [ "python", "start.py" ]