|
|
@ -13,12 +13,18 @@ RUN sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php7/php.ini && \
|
|
|
|
|
|
|
|
|
|
|
|
COPY php-fpm.conf /etc/php7/php-fpm.d/zz-docker.conf
|
|
|
|
COPY php-fpm.conf /etc/php7/php-fpm.d/zz-docker.conf
|
|
|
|
|
|
|
|
|
|
|
|
COPY grav /app/
|
|
|
|
RUN addgroup -g 9999 lilia
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COPY --chown=nobody:lilia grav /app/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
USER nobody:lilia
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN php7 bin/gpm install admin form login email
|
|
|
|
RUN php7 bin/gpm install admin form login email
|
|
|
|
RUN php7 bin/grav install
|
|
|
|
RUN php7 bin/grav install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
USER root:root
|
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
|
|
|
|
|
|
CMD ["php-fpm7", "--allow-to-run-as-root"]
|
|
|
|
CMD ["php-fpm7"]
|
|
|
|