diff --git a/Dockerfile b/Dockerfile index 7d296d4..fe88e4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,9 +62,6 @@ RUN touch /app/logs/cron.log RUN echo '0 * * * * root php "/app/bin/cleanup" >> /app/logs/cleanup.log 2>&1' >> /etc/crontab RUN echo '0 * * * * root php "/app/bin/proxy" >> /app/logs/proxy.log 2>&1' >> /etc/crontab -# Run proxy list check -RUN php /app/bin/proxy - EXPOSE 80 ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] \ No newline at end of file diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 78fd49a..2821ab3 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -116,6 +116,14 @@ log_success "Cron started" echo -e "\n${GREEN}=== Marreta initialized ===${NC}\n" +# Run proxy list updater +log_info "Running proxy list updater..." +if php /app/bin/proxy; then + log_success "Proxy list updater completed successfully" +else + log_info "Proxy list updater finished (may not have been configured)" +fi + # Wait for any process to exit wait -n