Skip to content
Snippets Groups Projects
Dockerfile 695 B
Newer Older
FROM nginx
Dominik Hebeler's avatar
Dominik Hebeler committed
RUN apt -y update && apt -y install php-fpm ca-certificates zip php7.3-mbstring php7.3-dom php7.3-zip php7.3-curl
Dominik Hebeler's avatar
Dominik Hebeler committed
COPY / /html
COPY /service-configs/nginx/default.conf /etc/nginx/conf.d/default.conf

RUN sed -i 's/listen.owner = www-data/listen.owner = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf
RUN sed -i 's/listen.group = www-data/listen.group = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf
RUN sed -i 's/user = www-data/user = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf
RUN sed -i 's/group = www-data/group = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf
RUN sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.3/fpm/php.ini

WORKDIR /html

CMD /html/service-configs/start.sh