Решено -- apk add postgresql-dev libpq (в auto.p подправить libpq.so.5, либо симлинкс делать)
sergei v.2 08.08.2022 18:06
cat ./Dockerfile
FROM alpine:latest
RUN apk update && apk add --no-cache --virtual .builddeps tar bison gcc g++ linux-headers make mariadb-dev tzdata cvs postgresql-dev \
&& mkdir -p /src/sql 2>/dev/null && cd /src \
&& echo -ne "\n" | cvs -d :pserver:anonymous@cvs.parser.ru:/parser3project login \
&& cvs -d :pserver:anonymous@cvs.parser.ru:/parser3project get -r release_3_4_6 parser3 \
&& cvs -d :pserver:anonymous@cvs.parser.ru:/parser3project get sql \
&& cd /src/parser3 && ./buildall --strip --disable-safe-mode \
&& cd /src/sql/mysql && ./configure --prefix=/root/parser3install/bin && make && make install \
&& cd /src/sql/pgsql && ./configure --prefix=/root/parser3install/bin && make && make install \
&& mv /root/parser3install/bin /usr/local/parser3 \
&& apk del .builddeps && cd / && rm -rf /src/ && rm -f /tmp/* \
&& mkdir -p /app/{cgi,www} 2>/dev/null
RUN apk add --no-cache mariadb-connector-c-dev libcurl libstdc++ libgcc libpq \
&& rm -rf /tmp/* && ln -s "$(ls -1 /usr/lib/libcurl.so.* | head -1 | xargs basename)" /usr/lib/libcurl.so
RUN apk add --no-cache bash
COPY templates/auto.p /usr/local/parser3/auto.p
#COPY templates/index.html /app/www/index.html
ENV CGI_PARSER_LOG=/app/cgi/parser.log
USER nobody
WORKDIR /app/www
EXPOSE 9000
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/usr/local/parser3/parser3", "-p", "9000"]
CMD ["/usr/local/parser3/parser3"]