diff options
author | terminaldweller <thabogre@gmail.com> | 2022-12-18 11:18:14 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-12-18 11:18:14 +0000 |
commit | 48bc5c779635cd369672405483082115d4f5112b (patch) | |
tree | 0db3be47d825ea04081027f2887290c3fd88ff92 /irssi/tor/Dockerfile | |
parent | update (diff) | |
download | scripts-48bc5c779635cd369672405483082115d4f5112b.tar.gz scripts-48bc5c779635cd369672405483082115d4f5112b.zip |
update
Diffstat (limited to 'irssi/tor/Dockerfile')
-rw-r--r-- | irssi/tor/Dockerfile | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/irssi/tor/Dockerfile b/irssi/tor/Dockerfile new file mode 100644 index 0000000..40927ef --- /dev/null +++ b/irssi/tor/Dockerfile @@ -0,0 +1,90 @@ +FROM alpine:3.16 + +ENV http_proxy=socks5://192.168.1.214:9995 +ENV https_proxy=socks5://192.168.1.214:9995 +ENV HTTP_PROXY=socks5://192.168.1.214:9995 +ENV HTTPS_PROXY=socks5://192.168.1.214:9995 + +RUN apk add --no-cache \ + ca-certificates \ + perl-libwww + +ENV HOME /home/user +RUN set -eux; \ + adduser -u 1001 -D -h "$HOME" user; \ + mkdir "$HOME/.irssi"; \ + chown -R user:user "$HOME" + +ENV LANG C.UTF-8 + +ENV IRSSI_VERSION 1.4.3 + +RUN set -eux; \ + \ + apk add --no-cache --virtual .build-deps \ + coreutils \ + gcc \ + glib-dev \ + gnupg \ + libc-dev \ + libtool \ + lynx \ + meson \ + ncurses-dev \ + ninja \ + openssl \ + openssl-dev \ + perl-dev \ + pkgconf \ + tar \ + xz \ + ; + ENV http_proxy= + ENV https_proxy= + ENV HTTP_PROXY= + ENV HTTPS_PROXY= + RUN wget "https://github.com/irssi/irssi/releases/download/${IRSSI_VERSION}/irssi-${IRSSI_VERSION}.tar.xz" -O /tmp/irssi.tar.xz; \ + wget "https://github.com/irssi/irssi/releases/download/${IRSSI_VERSION}/irssi-${IRSSI_VERSION}.tar.xz.asc" -O /tmp/irssi.tar.xz.asc; \ + export GNUPGHOME="$(mktemp -d)"; \ +# gpg: key DDBEF0E1: public key "The Irssi project <staff@irssi.org>" imported + gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1; \ + gpg --batch --verify /tmp/irssi.tar.xz.asc /tmp/irssi.tar.xz; \ + gpgconf --kill all; \ + rm -rf "$GNUPGHOME" /tmp/irssi.tar.xz.asc; \ + \ + mkdir -p /usr/src/irssi; \ + tar -xf /tmp/irssi.tar.xz -C /usr/src/irssi --strip-components 1; \ + rm /tmp/irssi.tar.xz; \ + \ + cd /usr/src/irssi; \ + meson \ + -Denable-true-color=yes \ + -Dwith-bot=yes \ + -Dwith-perl=yes \ + -Dwith-proxy=yes \ + Build \ + ; \ + ninja -C Build -j "$(nproc)"; \ + ninja -C Build install; \ + \ + cd /; \ + rm -rf /usr/src/irssi; \ + \ + runDeps="$( \ + scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \ + | tr ',' '\n' \ + | sort -u \ + | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ + )"; \ + apk add --no-network --virtual .irssi-rundeps $runDeps; \ + echo https://dl-cdn.alpinelinux.org/alpine/v3.16/main >> /etc/apk/repositories && apk update && apk add --no-cache proxychains-ng ; \ + apk del --no-network .build-deps; \ + \ +# basic smoke test + irssi --version + +COPY ./proxychains.conf /etc/proxychains/ +WORKDIR $HOME + +USER user +CMD ["proxychains4", "-q", "irssi"] |