| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- FROM ubuntu:focal
- ENV DEBIAN_FRONTEND=noninteractive
- ENV TERM=xterm
- ENV LANG=ru_RU.UTF-8
- ENV container=docker
- RUN echo '#!/bin/sh' > /usr/sbin/policy-rc.d \
- && echo 'exit 101' >> /usr/sbin/policy-rc.d \
- && chmod +x /usr/sbin/policy-rc.d \
- && dpkg-divert --local --rename --add /sbin/initctl \
- && cp -a /usr/sbin/policy-rc.d /sbin/initctl \
- && sed -i 's/^exit.*/exit 0/' /sbin/initctl \
- && echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \
- && echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean \
- && echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean \
- && echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";' >> /etc/apt/apt.conf.d/docker-clean \
- && echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages \
- && echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes \
- && echo 'Apt::AutoRemove::SuggestsImportant "false";' > /etc/apt/apt.conf.d/docker-autoremove-suggests \
- && sed -i 's/# deb/deb/g' /etc/apt/sources.list \
- && apt-get update \
- && apt-get -yf --no-install-recommends install \
- gnupg software-properties-common dpkg-dev wget curl iptables nano mc iputils-ping locales ca-certificates pwgen apt-utils iproute2 net-tools \
- && sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen \
- && dpkg-reconfigure --frontend=noninteractive locales \
- && update-locale LANG=ru_RU.UTF-8
- ENV LANG ru_RU.UTF-8
- RUN mv /usr/bin/systemctl /usr/bin/systemctl.original
- COPY systemctl-wrapper /usr/bin/systemctl
- WORKDIR /root
- RUN wget "https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install-ubuntu.sh" \
- && pwgen -c -n -1 12 > $HOME/.delme \
- && bash hst-install-ubuntu.sh \
- --apache no --vsftpd no --proftpd no --named no --mysql no --postgresql no --exim yes --dovecot no \
- --sieve no --clamav no --spamassassin no --iptables no --fail2ban no --quota no --with-debs no \
- --interactive no \
- --phpfpm yes --multiphp yes --api yes \
- --email admin@hoster.0ln.ru --port 8083 --hostname hoster.0ln.ru --password $(cat $HOME/.delme) --lang ru \
- && apt-get -yf autoremove \
- && apt-get clean \
- && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
- RUN wget "https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/develop/files/docker/systemctl3.py" -O /usr/bin/systemctl \
- && chmod +x /usr/bin/systemctl \
- && mkdir -p /run/systemd/system/ \
- && systemctl disable ssh systemd-timesyncd \
- && echo "column-statistics = 0" >> /etc/mysql/conf.d/mysqldump.cnf
- VOLUME ["/usr/local/hestia", "/home", "/backup"]
- EXPOSE 80 443 8083
- CMD ["/usr/bin/systemctl"]
|