Spaces:
Running
Running
AILIXIR Bot commited on
Commit ·
e4c787f
1
Parent(s): ff99aeb
Auto-sync: 520e687668fe597e72ae38fb70c9e9ecd9f67336
Browse files- Dockerfile +2 -2
- docker/entrypoint.sh +0 -13
Dockerfile
CHANGED
|
@@ -109,7 +109,7 @@ USER www-data
|
|
| 109 |
EXPOSE 8000 7860
|
| 110 |
|
| 111 |
HEALTHCHECK --interval=15s --timeout=5s --start-period=40s --retries=5 \
|
| 112 |
-
CMD php -r "exit((int)(@file_get_contents('http://127.0.0.1:
|
| 113 |
|
| 114 |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
| 115 |
-
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=
|
|
|
|
| 109 |
EXPOSE 8000 7860
|
| 110 |
|
| 111 |
HEALTHCHECK --interval=15s --timeout=5s --start-period=40s --retries=5 \
|
| 112 |
+
CMD php -r "exit((int)(@file_get_contents('http://127.0.0.1:8000') === false));"
|
| 113 |
|
| 114 |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
| 115 |
+
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8000"]
|
docker/entrypoint.sh
CHANGED
|
@@ -3,19 +3,6 @@ set -e
|
|
| 3 |
|
| 4 |
cd /var/www/html
|
| 5 |
|
| 6 |
-
# Ensure AI integration routes and service URLs are set at runtime
|
| 7 |
-
# (the sync workflow writes these to .env, but .env is gitignored and never reaches the container)
|
| 8 |
-
cat >> /var/www/html/.env << 'EOF'
|
| 9 |
-
AI_INTEGRATION_ROUTES_ENABLED=true
|
| 10 |
-
ADMET_AI_URL=https://shdwRow-ailixir-admet.hf.space
|
| 11 |
-
CHEMICAL_AI_URL=https://RottenShadow-ailixir-chemical-rag.hf.space
|
| 12 |
-
DRUG_REPURPOSING_URL=https://RottenShadow-ailixir-drug-repurposing.hf.space
|
| 13 |
-
GENERATION_SERVICE_URL=https://shdwRow-ailixir-generation.hf.space
|
| 14 |
-
APP_URL=https://Ailixir-AI-Team-ailixir-api.hf.space
|
| 15 |
-
APP_DEBUG=true
|
| 16 |
-
QUEUE_CONNECTION=sync
|
| 17 |
-
EOF
|
| 18 |
-
|
| 19 |
php artisan config:clear --no-interaction 2>/dev/null || true
|
| 20 |
|
| 21 |
# Create SQLite database file if it doesn't exist
|
|
|
|
| 3 |
|
| 4 |
cd /var/www/html
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
php artisan config:clear --no-interaction 2>/dev/null || true
|
| 7 |
|
| 8 |
# Create SQLite database file if it doesn't exist
|