-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
77 lines (62 loc) · 1.7 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM ghcr.io/pufferffish/wireproxy:latest@sha256:8e59c47dd88c4348af6ca2a416cba5ddc74605b0fbf38aafb673f56953cb1569 AS proxy
FROM ghcr.io/wabarc/wayback
LABEL org.wabarc.homepage="http://github.com/wabarc" \
org.wabarc.repository="http://github.com/wabarc/on-render"
COPY --from=proxy /usr/bin/wireproxy /usr/bin/wireproxy
ENV BASE_DIR /wayback
WORKDIR ${BASE_DIR}
# Ref: https://wiki.alpinelinux.org/wiki/Fonts
RUN set -o pipefail && \
apk add --no-cache \
dbus \
dumb-init \
libstdc++ \
nss \
ffmpeg \
chromium \
harfbuzz \
freetype \
ttf-freefont \
ttf-font-awesome \
font-noto \
font-noto-arabic \
font-noto-emoji \
font-noto-cjk \
font-noto-extra \
font-noto-lao \
font-noto-myanmar \
font-noto-thai \
font-noto-tibetan \
supervisor \
ca-certificates \
py3-setuptools \
curl \
libcap \
you-get \
rtmpdump \
youtube-dl \
libwebp-tools \
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
COPY cleaner.sh /
COPY browser.sh /
COPY wireproxy.sh /
COPY entrypoint.sh /
COPY supervisord.conf /etc/
RUN set -ex; \
chown wayback:nogroup /var/log/tor; \
chown wayback:nogroup /var/lib/tor; \
chmod a+r /etc/supervisord.conf /entrypoint.sh /cleaner.sh; \
\
sed -i 's/User/#User/g' /etc/tor/torrc
USER wayback
ENV SOCAT_OPTIONS="-d"
EXPOSE 80 8964 9001
ENV CHROME_BIN=/usr/bin/chromium-browser \
CHROME_PATH=/usr/lib/chromium/ \
CHROMEDP_DISABLE_GPU=true \
CHROMEDP_NO_SANDBOX=true \
CHROMEDP_USER_AGENT="WaybackArchiver/1.0"
ENV WAYBACK_STORAGE_DIR="/tmp/reduxer" \
WAYBACK_ARGS="-d web"
ENTRYPOINT ["dumb-init", "--"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]