This commit is contained in:
Lizandro Guarnizo
2026-06-05 18:50:08 -05:00
parent 44d646f44b
commit df35862de7
3 changed files with 23 additions and 1 deletions
+4 -1
View File
@@ -65,8 +65,10 @@ RUN mkdir -p bootstrap/cache storage/framework/views storage/framework/cache sto
COPY docker/nginx.conf /etc/nginx/http.d/default.conf
COPY docker/supervisord.conf /etc/supervisor.conf
COPY docker/entrypoint.sh /entrypoint.sh
RUN printf '[www]\nlisten = 127.0.0.1:9000\n' > /usr/local/etc/php-fpm.d/zz-opencode.conf \
RUN chmod +x /entrypoint.sh \
&& printf '[www]\nlisten = 127.0.0.1:9000\nclear_env = no\n' > /usr/local/etc/php-fpm.d/zz-opencode.conf \
&& php-fpm -t \
&& nginx -t \
&& echo "* * * * * php /app/artisan schedule:run >> /dev/null 2>&1" > /etc/crontabs/www-data
@@ -75,4 +77,5 @@ EXPOSE 80
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor.conf"]