FROM registry.yandex.net/wordstat/frontend__common
RUN useradd wordstat
RUN useradd monitor

RUN echo deb http://advq-common.dist.yandex.ru/advq-common/ stable/all/ >> /etc/apt/sources.list.d/advq.list
RUN apt-get update

# ==ENVS

RUN apt-get install -y --force-yes memcached
RUN apt-get install -y --force-yes nginx
RUN apt-get install -y --force-yes sudo
RUN apt-get install -y --force-yes netcat-openbsd socat tcpdump net-tools lsof


COPY dist_local/files/yandex-wordstat-frontend*.deb /tmp/
COPY dist_local/files/yacobot-config_1.0.0-3_amd64.deb /tmp/
RUN apt-get install -y --force-yes libqbit-yandex-perl=4.7
RUN dpkg -i /tmp/yacobot-config_1.0.0-3_amd64.deb
RUN apt-get install -y --force-yes config-frontend-advq-yandex
RUN apt-get install -y --force-yes yandex-passport-tvmtool=1.3.2
RUN apt-get install -y --force-yes yandex-wordstat-frontend
RUN dpkg -i /tmp/yandex-wordstat-frontend-configs*.deb
RUN dpkg -i /tmp/yandex-wordstat-frontend*.deb
COPY dist_local/files/start_qbit_fcgi.sh /usr/bin/
# для динамического ресурса geodata4
RUN mkdir -p /storage/geodata4
