- 3-step OpenRouter pipeline: Gatekeeper scoring/classification, PubMed+Google URL extraction, Markdown summary generation - REST worker routes /wp-json/peptide-news/v1/worker/* with X-Peptide-News-Token auth - Standalone Coolify worker (tools/vps-worker) with Dockerfile + docker-compose - CLI commands, content extractor, pubmed extractor, google url resolver - 89 PHPUnit tests passing
12 lines
300 B
Docker
12 lines
300 B
Docker
FROM php:8.3-cli-alpine
|
|
|
|
# Install curl extension and ca-certificates for secure HTTPS requests
|
|
RUN apk add --no-cache curl ca-certificates && \
|
|
docker-php-ext-install curl || true
|
|
|
|
WORKDIR /app
|
|
COPY worker.php /app/worker.php
|
|
|
|
# Default entrypoint runs the worker
|
|
CMD ["php", "/app/worker.php"]
|