usually in nginx compile third part module should use command:
./configure --add--module=path/to/your/new/module/directory then using:
make and finally:
make install but using docker can't go nginx path , run these commands. how add "configure" command docker-compose.yml file?
edit: i've tried create simple dockerfile this:
from nginx run ./configure --add-module=./module/ make && \ make install and including docker-compose.yml.
and gave me error:
/bin/sh: 1: ./configure: not found command '/bin/sh -c ./configure --add-module=./module/' returned non-zero code: 127 i've tried use "configure" instead of "./configure", same result. don't know how set configure command.
i not sure understand question correctly, think configure, make , make install should done part of docker build using run directive (in dockerfile). docker-compose run resultant image (probably in-tandem other docker images).
sample dockerfile (not verified, may contain errors!):
from centos:latest copy nginx /root/nginx workdir /root/nginx run ./configure && make && make install
Comments
Post a Comment