This commit is contained in:
MarkLo 2025-11-21 11:28:33 +08:00
parent c5efa24fab
commit 276c708826
1 changed files with 2 additions and 1 deletions

View File

@ -38,4 +38,5 @@ RUN mkdir -p /app/results
EXPOSE 8000
# Run the application
CMD ["uvicorn", "backend.app.main:app", "--host", "0.0.0.0", "--port", "8000"]
# Run the application using the PORT environment variable (required by Railway)
CMD ["sh", "-c", "uvicorn backend.app.main:app --host 0.0.0.0 --port ${PORT:-8000}"]