Ответ
Sergey 11.06.2019 20:10
docker-compose.yml
version: '3'
services:
web:
build:
context: .
dockerfile: parser3
ports:
- 80:80
volumes:
- /srv/www:/var/www/html
- /srv/etc/httpd/:/etc/apache2/
parser3
FROM php:7.2-apache
RUN a2enmod actions
RUN a2enmod cgi
RUN apt-get update
RUN apt-get -y install parser3-cgi parser3-mysql libmariadbclient18 curl
RUN cp /usr/bin/parser3 /usr/lib/cgi-bin/parser3.cgi
RUN chown -R www-data:www-data /var/www/html
RUN chown -R www-data:www-data /usr/lib/cgi-bin
RUN echo '$SQL.connect-string[
mysql://root@db/pechenin?charset=utf8]' >> /etc/parser3/auto.p
RUN ln -s /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18 /usr/lib/libmysqlclient.so
RUN ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4 /usr/lib/libcurl.so
RUN sed -i 's|libmysqlclient.so|/usr/lib/libmysqlclient.so|g' /etc/parser3/auto.p
Как бы дебиан 9 и парсер из его репника