| 1 | # Use the latest slim version of Kali Linux |
| 2 | FROM kalilinux/kali-rolling |
| 3 | |
| 4 | |
| 5 | # Set locale to en_US.UTF-8 and timezone to UTC |
| 6 | RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales tzdata |
| 7 | RUN sed -i -e 's/# \(en_US\.UTF-8 .*\)/\1/' /etc/locale.gen && \ |
| 8 | dpkg-reconfigure --frontend=noninteractive locales && \ |
| 9 | update-locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
| 10 | RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime |
| 11 | RUN echo "UTC" > /etc/timezone |
| 12 | RUN dpkg-reconfigure -f noninteractive tzdata |
| 13 | ENV LANG=en_US.UTF-8 |
| 14 | ENV LANGUAGE=en_US:en |
| 15 | ENV LC_ALL=en_US.UTF-8 |
| 16 | ENV TZ=UTC |
| 17 | |
| 18 | # Copy contents of the project to / |
| 19 | COPY ./fs/ / |
| 20 | |
| 21 | # install packages software (split for better cache management) |
| 22 | RUN bash /ins/install_base_packages1.sh |
| 23 | RUN bash /ins/install_base_packages2.sh |
| 24 | RUN bash /ins/install_base_packages3.sh |
| 25 | RUN bash /ins/install_base_packages4.sh |
| 26 | |
| 27 | # install python after packages to ensure version overriding |
| 28 | RUN bash /ins/install_python.sh |
| 29 | |
| 30 | # install searxng |
| 31 | RUN bash /ins/install_searxng.sh |
| 32 | |
| 33 | # configure ssh |
| 34 | RUN bash /ins/configure_ssh.sh |
| 35 | |
| 36 | # after install |
| 37 | RUN bash /ins/after_install.sh |
| 38 | |
| 39 | # Keep container running infinitely |
| 40 | CMD ["tail", "-f", "/dev/null"] |