backend
Browse filesFiles changed (2)
39 unmodified lines4041424344454639 unmodified lines# Health checkHEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \CMD python -c "import urllib.request, os; port=os.environ.get('PORT', '8000'); urllib.request.urlopen(f'http://localhost:{port}/health')" || exit 1# Run the application using the dynamic PORT provided by the platform (e.g. Railway)CMD sh -c "uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000}"39 unmodified lines4041424344454639 unmodified lines# Health checkHEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \CMD python -c "import urllib.request, os; port=os.environ.get('PORT', '8000'); urllib.request.urlopen(f'http://127.0.0.1:{port}/health')" || exit 1# Run the application using the dynamic PORT provided by the platform (e.g. Railway)CMD sh -c "uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000}"
22 unmodified lines23242526272829303122 unmodified lines# Expose Streamlit default portEXPOSE 8501# Health checkHEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \CMD python -c "import urllib.request, os; port=os.environ.get('PORT', '8501'); urllib.request.urlopen(f'http://localhost:{port}/_stcore/health')" || exit 1# Run Streamlit using the dynamic PORT provided by the platform (e.g. Railway)CMD sh -c "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0 --server.headless=true"22 unmodified lines23242526272829303122 unmodified lines# Expose Streamlit default portEXPOSE 8501# Health check - use 127.0.0.1 to avoid IPv6 resolution issues in DockerHEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \CMD python -c "import urllib.request, os; port=os.environ.get('PORT', '8501'); urllib.request.urlopen(f'http://127.0.0.1:{port}/_stcore/health')" || exit 1# Run Streamlit using the dynamic PORT provided by the platform (e.g. Railway)CMD sh -c "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0 --server.headless=true --server.enableCORS=false --server.enableWebsocketCompression=false"
Dockerfile.backend+1-1
Dockerfile.frontend+3-3