Dockerfile 1.7 KB

12345678910111213141516171819202122232425262728
  1. FROM jupyter/minimal-notebook:5197709e9f23
  2. USER root
  3. RUN echo '%users ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
  4. RUN pip install jupyter-server-proxy httpx pcloud requests selenium
  5. RUN apt update -qq && apt install curl dnsmasq ffmpeg file fonts-dejavu-core imagemagick firefox=75.0+build3-0ubuntu1 firefox-geckodriver=75.0+build3-0ubuntu1 openssh-server p7zip-full privoxy squid tor vim \
  6. php-cli php-curl php-mbstring php-json php-intl php-gd php-opcache php-pgsql php-xml postgresql -qy
  7. RUN git clone -q https://git.tt-rss.org/fox/tt-rss.git ${HOME}/tt-rss && env -C ${HOME}/tt-rss git checkout 328d7b55c8
  8. RUN echo > /etc/ssh/sshd_config && \
  9. wget -qO- https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | funzip > /usr/bin/ngrok && chmod a+x /usr/bin/ngrok && \
  10. wget -qO /etc/dnsmasq.conf.ads-yoyo "http://pgl.yoyo.org/as/serverlist.php?hostformat=dnsmasq-server&showintro=0&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext" && \
  11. # --
  12. sed -i 's/^\(listen-address.*\)/#\1/' /etc/privoxy/config && \
  13. ( echo '{+block{Ad Domains from pgl.yoyo.org} +handle-as-empty-document}' && wget -qO- "http://pgl.yoyo.org/as/serverlist.php?hostformat=junkbuster&showintro=0&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext" ) > /etc/privoxy/ads.yoyo.action && \
  14. curl -sS https://rclone.org/install.sh | bash && \
  15. mkdir -p /var/squid/cache && chmod 777 /var/squid/cache && squid -Nz && \
  16. sed -i 's/en_US/en_CA/' /etc/locale.gen && locale-gen
  17. ENV LANG=en_CA.UTF-8
  18. ENV LANGUAGE=$LANG LC_ALL=$LANG
  19. COPY . $HOME
  20. RUN while read -r s d; do cat $HOME/conf/$s >> $d; done < $HOME/conf.csv
  21. RUN chown -R ${NB_UID} ${HOME}
  22. USER ${NB_USER}