FROM registry.yandex.net/maps/core-base-bionic:9754240
MAINTAINER Alexey Pomomarev <ponomarev@yandex-team.ru>

COPY install /
RUN chown -R www-data:www-data \
    /var/www/.postgresql \
    /var/lib/yandex/maps/wiki/stat

RUN mkdir -p /usr/share/yandex/maps/wiki/editor-export \
    && cd /usr/share/yandex/maps/wiki/editor \
    && tar -czf /usr/share/yandex/maps/wiki/editor-export/config.tgz * \
    && cd -

RUN yacare enable wiki-editor
