Start fastcgi process manager after config files updated

master
Mario Jauvin 3 years ago
parent c8d3d1b611
commit 490e27e229

@ -73,7 +73,7 @@ COPY config.py /config.py
EXPOSE 80/tcp
VOLUME ["/data"]
CMD php-fpm7 && /start.py
CMD /start.py
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1
RUN echo $VERSION >> /version

@ -23,6 +23,8 @@ os.makedirs(base + "configs", exist_ok=True)
conf.jinja("/defaults/default.ini", os.environ, "/data/_data_/_default_/domains/default.ini")
conf.jinja("/defaults/application.ini", os.environ, "/data/_data_/_default_/configs/application.ini")
conf.jinja("/defaults/php.ini", os.environ, "/etc/php7/php.ini")
# Start the fastcgi process manager now that config files have been adjusted
os.system("php-fpm7")
os.system("chown -R nginx:nginx /data")
os.system("chmod -R a+rX /var/www/rainloop/")

Loading…
Cancel
Save