diff --git a/indexer/Dockerfile b/indexer/Dockerfile index bff6ea0..6e88da2 100644 --- a/indexer/Dockerfile +++ b/indexer/Dockerfile @@ -16,8 +16,9 @@ COPY lexicons/ ./lexicons/ # Install Python dependencies RUN pip install --no-cache-dir . -# Print a startup message -RUN echo 'echo "Hello from comind!"' > /startup.sh && chmod +x /startup.sh +# Ensure output is unbuffered for logging +ENV PYTHONUNBUFFERED=1 # Default to running the web server - use PORT env var for Railway -CMD sh -c "/startup.sh && gunicorn --bind 0.0.0.0:\${PORT:-8080} --workers 2 --timeout 120 indexer.app:app" +CMD echo "Starting comind indexer on port ${PORT:-8080}..." && \ + gunicorn --bind 0.0.0.0:${PORT:-8080} --workers 2 --timeout 120 --access-logfile - --error-logfile - indexer.app:app